Fix inconsistencies with UserId (#906)
* Fix inconsistencies with UserId The account user id isn't an UUID. This PR adds a new UserId type with the correct value ordering to avoid mismatch with LibHac's Uid. This also fix an hardcoded value of the UserId. As the userid has been invalid for quite some time (and to avoid forcing users to their recreate saves), the userid has been changed to "00000000000000010000000000000000". Also implement a stub for IApplicationFunctions::GetSaveDataSize. (see the sources for the reason) Fix #626 * Address jd's & Ac_k's comments
This commit is contained in:
@ -1,5 +1,4 @@
|
||||
using Ryujinx.HLE.HOS.Services.Account.Acc;
|
||||
using Ryujinx.HLE.Utilities;
|
||||
using System;
|
||||
|
||||
namespace Ryujinx.HLE.HOS.SystemState
|
||||
@ -54,7 +53,7 @@ namespace Ryujinx.HLE.HOS.SystemState
|
||||
|
||||
Account = new AccountUtils();
|
||||
|
||||
UInt128 defaultUid = new UInt128("00000000000000000000000000000001");
|
||||
UserId defaultUid = new UserId("00000000000000010000000000000000");
|
||||
|
||||
Account.AddUser(defaultUid, "Player");
|
||||
Account.OpenUser(defaultUid);
|
||||
|
Reference in New Issue
Block a user