From 3b531de670a011c40b269eaba33e2fea8f438859 Mon Sep 17 00:00:00 2001 From: Thog Date: Sun, 1 Mar 2020 23:56:02 +0100 Subject: Implement mii:u and mii:e entirely (#955) * Implement mii:u and mii:e entirely Co-authored-by: AcK77 This commit implement the mii service accurately. This is based on Ac_k work but was polished and updated to 7.x. Please note that the following calls are partially implemented: - Convert: Used to convert from old console format (Wii/Wii U/3ds) - Import and Export: this is shouldn't be accesible in production mode. * Remove some debug leftovers * Make it possible to load an arbitrary mii database from a Switch * Address gdk's comments * Reduce visibility of all the Mii code * Address Ac_K's comments * Remove the StructLayout of DatabaseSessionMetadata * Add a missing line return in DatabaseSessionMetadata * Misc fixes and style changes * Fix some issues from last commit * Fix database server metadata UpdateCounter in MarkDirty (Thanks Moose for the catch) * MountCounter should only be incremented when no error is reported * Fix FixDatabase Co-authored-by: Alex Barney --- Ryujinx.HLE/HOS/SystemState/SystemStateMgr.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Ryujinx.HLE/HOS/SystemState') diff --git a/Ryujinx.HLE/HOS/SystemState/SystemStateMgr.cs b/Ryujinx.HLE/HOS/SystemState/SystemStateMgr.cs index 3784cb78..c2e6680d 100644 --- a/Ryujinx.HLE/HOS/SystemState/SystemStateMgr.cs +++ b/Ryujinx.HLE/HOS/SystemState/SystemStateMgr.cs @@ -5,6 +5,8 @@ namespace Ryujinx.HLE.HOS.SystemState { public class SystemStateMgr { + public static readonly UserId DefaultUserId = new UserId("00000000000000010000000000000000"); + internal static string[] LanguageCodes = new string[] { "ja", @@ -53,10 +55,8 @@ namespace Ryujinx.HLE.HOS.SystemState Account = new AccountUtils(); - UserId defaultUid = new UserId("00000000000000010000000000000000"); - - Account.AddUser(defaultUid, "Player"); - Account.OpenUser(defaultUid); + Account.AddUser(DefaultUserId, "Player"); + Account.OpenUser(DefaultUserId); } public void SetLanguage(SystemLanguage language) -- cgit v1.2.3