aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/Services/Acc
diff options
context:
space:
mode:
authoremmauss <emmausssss@gmail.com>2018-10-07 16:13:46 +0300
committerThomas Guillemard <thog@protonmail.com>2018-10-07 15:13:46 +0200
commitcaa181edf2c956a1433d3c2f8678231af52f9dad (patch)
tree4d7297bb09e90541368132a92b5235eee4315832 /Ryujinx.HLE/HOS/Services/Acc
parent5b8ccb717f225234ae97a2ef1673ca42833bd836 (diff)
Save Common implementation (#434)
* save common implementation * remove zero userid check * Renamed UserId to UInt128 * fix index in hex conversion
Diffstat (limited to 'Ryujinx.HLE/HOS/Services/Acc')
-rw-r--r--Ryujinx.HLE/HOS/Services/Acc/IAccountService.cs13
1 files changed, 5 insertions, 8 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Acc/IAccountService.cs b/Ryujinx.HLE/HOS/Services/Acc/IAccountService.cs
index 8fd7bfea..347f2e20 100644
--- a/Ryujinx.HLE/HOS/Services/Acc/IAccountService.cs
+++ b/Ryujinx.HLE/HOS/Services/Acc/IAccountService.cs
@@ -1,6 +1,7 @@
using Ryujinx.HLE.HOS.Ipc;
using Ryujinx.HLE.HOS.SystemState;
using Ryujinx.HLE.Logging;
+using Ryujinx.HLE.Utilities;
using System.Collections.Generic;
using static Ryujinx.HLE.HOS.ErrorCode;
@@ -37,7 +38,7 @@ namespace Ryujinx.HLE.HOS.Services.Acc
public long GetUserExistence(ServiceCtx Context)
{
- UserId Uuid = new UserId(
+ UInt128 Uuid = new UInt128(
Context.RequestData.ReadInt64(),
Context.RequestData.ReadInt64());
@@ -70,12 +71,8 @@ namespace Ryujinx.HLE.HOS.Services.Acc
break;
}
- byte[] Uuid = Profile.Uuid.Bytes;
-
- for (int Index = Uuid.Length - 1; Index >= 0; Index--)
- {
- Context.Memory.WriteByte(OutputPosition + Offset++, Uuid[Index]);
- }
+ Context.Memory.WriteInt64(OutputPosition, Profile.Uuid.High);
+ Context.Memory.WriteInt64(OutputPosition + 8, Profile.Uuid.Low);
}
return 0;
@@ -92,7 +89,7 @@ namespace Ryujinx.HLE.HOS.Services.Acc
public long GetProfile(ServiceCtx Context)
{
- UserId Uuid = new UserId(
+ UInt128 Uuid = new UInt128(
Context.RequestData.ReadInt64(),
Context.RequestData.ReadInt64());