mirror of
https://github.com/GreemDev/Ryujinx
synced 2024-12-26 22:06:45 +01:00
ea14a95524
* 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
27 lines
No EOL
856 B
C#
27 lines
No EOL
856 B
C#
using Ryujinx.HLE.HOS.Services.Account.Acc;
|
|
|
|
namespace Ryujinx.HLE.FileSystem
|
|
{
|
|
struct SaveInfo
|
|
{
|
|
public ulong TitleId { get; private set; }
|
|
public long SaveId { get; private set; }
|
|
public SaveDataType SaveDataType { get; private set; }
|
|
public SaveSpaceId SaveSpaceId { get; private set; }
|
|
public UserId UserId { get; private set; }
|
|
|
|
public SaveInfo(
|
|
ulong titleId,
|
|
long saveId,
|
|
SaveDataType saveDataType,
|
|
SaveSpaceId saveSpaceId,
|
|
UserId userId = new UserId())
|
|
{
|
|
TitleId = titleId;
|
|
SaveId = saveId;
|
|
SaveDataType = saveDataType;
|
|
SaveSpaceId = saveSpaceId;
|
|
UserId = userId;
|
|
}
|
|
}
|
|
} |