aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/ApplicationLoader.cs
diff options
context:
space:
mode:
authorAc_K <Acoustik666@gmail.com>2021-04-13 03:16:43 +0200
committerGitHub <noreply@github.com>2021-04-13 03:16:43 +0200
commit7344dee47598a26fe72de859c311354f834ca2ed (patch)
treeedf8cf10ffda04e49b2aac4cfc69b3f5fd98d5f3 /Ryujinx.HLE/HOS/ApplicationLoader.cs
parent001005b3d56d4984399b4baf8e4b7348ecdb5062 (diff)
account: Adds AccountManager (#2184)
* account: Adds Account Manager In a way to have Custom User Profiles merged in master faster, this PR adds a `AccountManager` class (based on `AccountUtils` class) and the following changes have been made: - Adds a "default profile values" which were the old hardcoded ones. - The image profile is moved to the Account service folder. - The hardcoded UserId for the savedata is now using the `AccountManager` last opened one. - The DeviceId in Mii service is changed to the right value (checked by REd sys:set call). * Fix csproj * Addresses gdkchan's comments * Fix UserProfile fields * Fix mii GetDeviceId() * Update Ryujinx.HLE.csproj
Diffstat (limited to 'Ryujinx.HLE/HOS/ApplicationLoader.cs')
-rw-r--r--Ryujinx.HLE/HOS/ApplicationLoader.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Ryujinx.HLE/HOS/ApplicationLoader.cs b/Ryujinx.HLE/HOS/ApplicationLoader.cs
index 21d94311..40e3f646 100644
--- a/Ryujinx.HLE/HOS/ApplicationLoader.cs
+++ b/Ryujinx.HLE/HOS/ApplicationLoader.cs
@@ -648,7 +648,7 @@ namespace Ryujinx.HLE.HOS
{
Logger.Info?.Print(LogClass.Application, "Ensuring required savedata exists.");
- Uid user = _device.System.State.Account.LastOpenedUser.UserId.ToLibHacUid();
+ Uid user = _device.System.AccountManager.LastOpenedUser.UserId.ToLibHacUid();
ref ApplicationControlProperty control = ref ControlData.Value;