From 7344dee47598a26fe72de859c311354f834ca2ed Mon Sep 17 00:00:00 2001 From: Ac_K Date: Tue, 13 Apr 2021 03:16:43 +0200 Subject: 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 --- Ryujinx.HLE/HOS/SystemState/SystemStateMgr.cs | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'Ryujinx.HLE/HOS/SystemState/SystemStateMgr.cs') diff --git a/Ryujinx.HLE/HOS/SystemState/SystemStateMgr.cs b/Ryujinx.HLE/HOS/SystemState/SystemStateMgr.cs index 0fe73ebb..9c63853c 100644 --- a/Ryujinx.HLE/HOS/SystemState/SystemStateMgr.cs +++ b/Ryujinx.HLE/HOS/SystemState/SystemStateMgr.cs @@ -1,12 +1,9 @@ -using Ryujinx.HLE.HOS.Services.Account.Acc; using System; namespace Ryujinx.HLE.HOS.SystemState { public class SystemStateMgr { - public static readonly UserId DefaultUserId = new UserId("00000000000000010000000000000000"); - internal static string[] LanguageCodes = new string[] { "ja", @@ -46,15 +43,8 @@ namespace Ryujinx.HLE.HOS.SystemState public bool InstallContents { get; set; } - public AccountUtils Account { get; private set; } - public SystemStateMgr() { - Account = new AccountUtils(); - - Account.AddUser(DefaultUserId, "Player"); - Account.OpenUser(DefaultUserId); - // TODO: Let user specify. DesiredKeyboardLayout = (long)KeyboardLayout.Default; } -- cgit v1.2.3