fix index in hex conversion

This commit is contained in:
emmaus 2018-10-04 11:46:37 +00:00
commit d3c978e5cc

View file

@ -38,11 +38,8 @@ namespace Ryujinx.HLE.Utilities
throw new ArgumentException("Invalid Hex value!", nameof(UInt128Hex)); throw new ArgumentException("Invalid Hex value!", nameof(UInt128Hex));
} }
byte[] LowBytes = StringUtils.HexToBytes(UInt128Hex.Substring(8)); Low = Convert.ToInt64(UInt128Hex.Substring(16),16);
byte[] HighBytes = StringUtils.HexToBytes(UInt128Hex.Substring(0,8)); High = Convert.ToInt64(UInt128Hex.Substring(0, 16), 16);
Low = BitConverter.ToInt64(LowBytes);
High = BitConverter.ToInt64(HighBytes);
} }
public void Write(BinaryWriter BinaryWriter) public void Write(BinaryWriter BinaryWriter)