diff options
| author | Thog <me@thog.eu> | 2020-03-01 23:56:02 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-02 09:56:01 +1100 |
| commit | 3b531de670a011c40b269eaba33e2fea8f438859 (patch) | |
| tree | 1c0ac3711297340b8b256ac27ca9baea2aa3969a /Ryujinx.HLE/HOS/Services/Account | |
| parent | 7d1a294eae00b8f6e752ec34f794ba09ea80974a (diff) | |
Implement mii:u and mii:e entirely (#955)
* Implement mii:u and mii:e entirely
Co-authored-by: AcK77 <Acoustik666@gmail.com>
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 <thealexbarney@gmail.com>
Diffstat (limited to 'Ryujinx.HLE/HOS/Services/Account')
| -rw-r--r-- | Ryujinx.HLE/HOS/Services/Account/Acc/Types/UserId.cs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Account/Acc/Types/UserId.cs b/Ryujinx.HLE/HOS/Services/Account/Acc/Types/UserId.cs index 06b6b556..75915c02 100644 --- a/Ryujinx.HLE/HOS/Services/Account/Acc/Types/UserId.cs +++ b/Ryujinx.HLE/HOS/Services/Account/Acc/Types/UserId.cs @@ -1,4 +1,5 @@ using LibHac.Account; +using Ryujinx.HLE.Utilities; using System; using System.IO; using System.Linq; @@ -73,9 +74,14 @@ namespace Ryujinx.HLE.HOS.Services.Account.Acc return HashCode.Combine(Low, High); } - public Uid ToLibHacUid() + public readonly Uid ToLibHacUid() { return new Uid((ulong)High, (ulong)Low); } + + public readonly UInt128 ToUInt128() + { + return new UInt128(Low, High); + } } }
\ No newline at end of file |
