diff options
| author | Ac_K <Acoustik666@gmail.com> | 2021-04-13 03:16:43 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-13 03:16:43 +0200 |
| commit | 7344dee47598a26fe72de859c311354f834ca2ed (patch) | |
| tree | edf8cf10ffda04e49b2aac4cfc69b3f5fd98d5f3 /Ryujinx.HLE/Switch.cs | |
| parent | 001005b3d56d4984399b4baf8e4b7348ecdb5062 (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/Switch.cs')
| -rw-r--r-- | Ryujinx.HLE/Switch.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Ryujinx.HLE/Switch.cs b/Ryujinx.HLE/Switch.cs index 6770b25e..a36c006d 100644 --- a/Ryujinx.HLE/Switch.cs +++ b/Ryujinx.HLE/Switch.cs @@ -13,6 +13,7 @@ using Ryujinx.HLE.FileSystem; using Ryujinx.HLE.FileSystem.Content; using Ryujinx.HLE.HOS; using Ryujinx.HLE.HOS.Services; +using Ryujinx.HLE.HOS.Services.Account.Acc; using Ryujinx.HLE.HOS.Services.Apm; using Ryujinx.HLE.HOS.Services.Hid; using Ryujinx.HLE.HOS.Services.Nv.NvDrvServices; @@ -57,6 +58,7 @@ namespace Ryujinx.HLE public Switch( VirtualFileSystem fileSystem, ContentManager contentManager, + AccountManager accountManager, UserChannelPersistence userChannelPersistence, IRenderer renderer, IHardwareDeviceDriver audioDeviceDriver, @@ -112,7 +114,7 @@ namespace Ryujinx.HLE FileSystem = fileSystem; - System = new Horizon(this, contentManager, memoryConfiguration); + System = new Horizon(this, contentManager, accountManager, memoryConfiguration); System.InitializeServices(); Statistics = new PerformanceStatistics(); |
