Temp Fix To Load Miis
This commit is contained in:
parent
d42088d2e0
commit
3af1a2e033
@ -206,13 +206,10 @@ namespace Ryujinx.HLE.HOS.Services.Nfc.AmiiboDecryption
|
||||
return Encoding.Unicode.GetString(data, offset, length * 2);
|
||||
}
|
||||
|
||||
public CharInfo ConvertToCharInfo()
|
||||
public CharInfo ConvertToCharInfo(CharInfo Info)
|
||||
{
|
||||
CharInfo Info = new CharInfo();
|
||||
UInt128 CreateId = BitConverter.ToUInt128(CreateID, 0);
|
||||
Info.CreateId = new CreateId(CreateId);
|
||||
Info.Build = 64;
|
||||
Info.Type = 0;
|
||||
//UInt128 CreateId = BitConverter.ToUInt128(CreateID, 0);
|
||||
//Info.CreateId = new CreateId(CreateId);
|
||||
Info.Nickname = Nickname.FromString(MiiName);
|
||||
Info.FavoriteColor = (byte)FavoriteColor;
|
||||
Info.Gender = IsMale ? Gender.Male : Gender.Female;
|
||||
|
@ -35,7 +35,10 @@ namespace Ryujinx.HLE.HOS.Services.Nfc.AmiiboDecryption
|
||||
byte[] newMiiBytes = new byte[92];
|
||||
Array.Copy(MiiBytes, 0, newMiiBytes, 0, 92);
|
||||
CharInfoBin charInfoBin = CharInfoBin.Parse(newMiiBytes);
|
||||
CharInfo charInfo = charInfoBin.ConvertToCharInfo();
|
||||
UtilityImpl utilityImpl = new UtilityImpl(tickSource);
|
||||
CharInfo Info = new();
|
||||
Info.SetFromStoreData(StoreData.BuildDefault(utilityImpl, 0));
|
||||
CharInfo charInfo = charInfoBin.ConvertToCharInfo(Info);
|
||||
info.MiiCharInfo = charInfo;
|
||||
return info;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user