mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-08-02 01:22:27 -07:00
Refactoring of acc:u0 (#701)
* Refactoring of acc:u0 - Move all account things to the account service - More accurate IAccountServiceForApplication - Add helper to UInt128 * FIx my engrish * FIx my engrish #2
This commit is contained in:
@@ -9,12 +9,20 @@ namespace Ryujinx.HLE.Utilities
|
||||
public long High { get; private set; }
|
||||
public long Low { get; private set; }
|
||||
|
||||
public bool IsNull => (Low | High) == 0;
|
||||
|
||||
public UInt128(long low, long high)
|
||||
{
|
||||
Low = low;
|
||||
High = high;
|
||||
}
|
||||
|
||||
public UInt128(byte[] bytes)
|
||||
{
|
||||
Low = BitConverter.ToInt64(bytes, 0);
|
||||
High = BitConverter.ToInt64(bytes, 8);
|
||||
}
|
||||
|
||||
public UInt128(string hex)
|
||||
{
|
||||
if (hex == null || hex.Length != 32 || !hex.All("0123456789abcdefABCDEF".Contains))
|
||||
@@ -42,4 +50,4 @@ namespace Ryujinx.HLE.Utilities
|
||||
return (Low | High) == 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user