mirror of
https://github.com/GreemDev/Ryujinx
synced 2024-12-23 12:26:35 +01:00
Added nickname support
This commit is contained in:
parent
e131901de3
commit
6051c35553
2 changed files with 7 additions and 1 deletions
|
@ -145,7 +145,7 @@ namespace Ryujinx.HLE.HOS.Services.Nfc.AmiiboDecryption
|
||||||
{
|
{
|
||||||
VirtualAmiibo.applicationBytes = applicationAreas;
|
VirtualAmiibo.applicationBytes = applicationAreas;
|
||||||
}
|
}
|
||||||
|
VirtualAmiibo.nickName = nickName;
|
||||||
return virtualAmiiboFile;
|
return virtualAmiiboFile;
|
||||||
}
|
}
|
||||||
public static bool SaveBinFile(string inputFile, byte[] appData)
|
public static bool SaveBinFile(string inputFile, byte[] appData)
|
||||||
|
|
|
@ -17,6 +17,7 @@ namespace Ryujinx.HLE.HOS.Services.Nfc.Nfp
|
||||||
public static uint _openedApplicationAreaId;
|
public static uint _openedApplicationAreaId;
|
||||||
public static byte[] applicationBytes = new byte[0];
|
public static byte[] applicationBytes = new byte[0];
|
||||||
public static string inputBin = string.Empty;
|
public static string inputBin = string.Empty;
|
||||||
|
public static string nickName = string.Empty;
|
||||||
private static readonly AmiiboJsonSerializerContext _serializerContext = AmiiboJsonSerializerContext.Default;
|
private static readonly AmiiboJsonSerializerContext _serializerContext = AmiiboJsonSerializerContext.Default;
|
||||||
public static byte[] GenerateUuid(string amiiboId, bool useRandomUuid)
|
public static byte[] GenerateUuid(string amiiboId, bool useRandomUuid)
|
||||||
{
|
{
|
||||||
|
@ -69,6 +70,11 @@ namespace Ryujinx.HLE.HOS.Services.Nfc.Nfp
|
||||||
{
|
{
|
||||||
VirtualAmiiboFile amiiboFile = LoadAmiiboFile(amiiboId);
|
VirtualAmiiboFile amiiboFile = LoadAmiiboFile(amiiboId);
|
||||||
string nickname = amiiboFile.NickName ?? "Ryujinx";
|
string nickname = amiiboFile.NickName ?? "Ryujinx";
|
||||||
|
if (nickName != string.Empty)
|
||||||
|
{
|
||||||
|
nickname = nickName;
|
||||||
|
nickName = string.Empty;
|
||||||
|
}
|
||||||
UtilityImpl utilityImpl = new(tickSource);
|
UtilityImpl utilityImpl = new(tickSource);
|
||||||
CharInfo charInfo = new();
|
CharInfo charInfo = new();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue