From ac1a379265d0c02a8bd4a146c205f21e2d00f3ab Mon Sep 17 00:00:00 2001 From: Thomas Guillemard Date: Sun, 14 Oct 2018 04:07:56 +0200 Subject: Fix some issues with UserId (#455) --- Ryujinx.HLE/Utilities/UInt128.cs | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'Ryujinx.HLE/Utilities') 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); } -- cgit v1.2.3