Added nickname support

This commit is contained in:
Jacobwasbeast 2024-12-05 02:38:30 -06:00
parent e131901de3
commit 6051c35553
2 changed files with 7 additions and 1 deletions

View file

@ -145,7 +145,7 @@ namespace Ryujinx.HLE.HOS.Services.Nfc.AmiiboDecryption
{
VirtualAmiibo.applicationBytes = applicationAreas;
}
VirtualAmiibo.nickName = nickName;
return virtualAmiiboFile;
}
public static bool SaveBinFile(string inputFile, byte[] appData)

View file

@ -17,6 +17,7 @@ namespace Ryujinx.HLE.HOS.Services.Nfc.Nfp
public static uint _openedApplicationAreaId;
public static byte[] applicationBytes = new byte[0];
public static string inputBin = string.Empty;
public static string nickName = string.Empty;
private static readonly AmiiboJsonSerializerContext _serializerContext = AmiiboJsonSerializerContext.Default;
public static byte[] GenerateUuid(string amiiboId, bool useRandomUuid)
{
@ -69,6 +70,11 @@ namespace Ryujinx.HLE.HOS.Services.Nfc.Nfp
{
VirtualAmiiboFile amiiboFile = LoadAmiiboFile(amiiboId);
string nickname = amiiboFile.NickName ?? "Ryujinx";
if (nickName != string.Empty)
{
nickname = nickName;
nickName = string.Empty;
}
UtilityImpl utilityImpl = new(tickSource);
CharInfo charInfo = new();