aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Guillemard <thog@protonmail.com>2018-10-14 04:07:56 +0200
committerAc_K <Acoustik666@gmail.com>2018-10-14 02:07:56 +0000
commitac1a379265d0c02a8bd4a146c205f21e2d00f3ab (patch)
treeaefd2010a740cbbe3013d327d506f0aacc0dbf00
parent3561062bc67cde7423d64237170845a206a441c6 (diff)
Fix some issues with UserId (#455)
-rw-r--r--Ryujinx.HLE/HOS/Services/Acc/IAccountService.cs4
-rw-r--r--Ryujinx.HLE/Utilities/UInt128.cs17
2 files changed, 3 insertions, 18 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Acc/IAccountService.cs b/Ryujinx.HLE/HOS/Services/Acc/IAccountService.cs
index 08c4c88c..d866a853 100644
--- a/Ryujinx.HLE/HOS/Services/Acc/IAccountService.cs
+++ b/Ryujinx.HLE/HOS/Services/Acc/IAccountService.cs
@@ -77,8 +77,8 @@ namespace Ryujinx.HLE.HOS.Services.Acc
break;
}
- Context.Memory.WriteInt64(OutputPosition, Profile.Uuid.High);
- Context.Memory.WriteInt64(OutputPosition + 8, Profile.Uuid.Low);
+ Context.Memory.WriteInt64(OutputPosition, Profile.Uuid.Low);
+ Context.Memory.WriteInt64(OutputPosition + 8, Profile.Uuid.High);
}
return 0;
diff --git a/Ryujinx.HLE/Utilities/UInt128.cs b/Ryujinx.HLE/Utilities/UInt128.cs
index 54c0c35f..95b3d624 100644
--- a/Ryujinx.HLE/Utilities/UInt128.cs
+++ b/Ryujinx.HLE/Utilities/UInt128.cs
@@ -14,21 +14,6 @@ namespace Ryujinx.HLE.Utilities
{
this.Low = Low;
this.High = High;
-
- byte[] Bytes = new byte[16];
-
- int Index = Bytes.Length;
-
- void WriteBytes(long Value)
- {
- for (int Byte = 0; Byte < 8; Byte++)
- {
- Bytes[--Index] = (byte)(Value >> Byte * 8);
- }
- }
-
- WriteBytes(Low);
- WriteBytes(High);
}
public UInt128(string UInt128Hex)
@@ -38,7 +23,7 @@ namespace Ryujinx.HLE.Utilities
throw new ArgumentException("Invalid Hex value!", nameof(UInt128Hex));
}
- Low = Convert.ToInt64(UInt128Hex.Substring(16),16);
+ Low = Convert.ToInt64(UInt128Hex.Substring(16), 16);
High = Convert.ToInt64(UInt128Hex.Substring(0, 16), 16);
}