diff options
| author | TSRBerry <20988865+TSRBerry@users.noreply.github.com> | 2023-06-28 01:18:19 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-28 01:18:19 +0200 |
| commit | fbaf62c2309f2987fa73a2022167ee3e81e31ea9 (patch) | |
| tree | 9d2ef3298843b551a544acc429f2269f101af935 /src/Ryujinx.HLE/HOS/Tamper | |
| parent | b186ec9fc5684bd8fa831a1777f6e936b897c352 (diff) | |
Apply new naming rule to all projects except Vp9 (#5407)
Diffstat (limited to 'src/Ryujinx.HLE/HOS/Tamper')
| -rw-r--r-- | src/Ryujinx.HLE/HOS/Tamper/InstructionHelper.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Ryujinx.HLE/HOS/Tamper/InstructionHelper.cs b/src/Ryujinx.HLE/HOS/Tamper/InstructionHelper.cs index e85d99c7..a31c055f 100644 --- a/src/Ryujinx.HLE/HOS/Tamper/InstructionHelper.cs +++ b/src/Ryujinx.HLE/HOS/Tamper/InstructionHelper.cs @@ -96,14 +96,14 @@ namespace Ryujinx.HLE.HOS.Tamper public static byte[] ParseRawInstruction(string rawInstruction) { - const int wordSize = 2 * sizeof(uint); + const int WordSize = 2 * sizeof(uint); // Instructions are multi-word, with 32bit words. Split the raw instruction // and parse each word into individual nybbles of bits. var words = rawInstruction.Split((char[])null, StringSplitOptions.RemoveEmptyEntries); - byte[] instruction = new byte[wordSize * words.Length]; + byte[] instruction = new byte[WordSize * words.Length]; if (words.Length == 0) { @@ -114,14 +114,14 @@ namespace Ryujinx.HLE.HOS.Tamper { string word = words[wordIndex]; - if (word.Length != wordSize) + if (word.Length != WordSize) { throw new TamperCompilationException($"Invalid word length for {word} in Atmosphere cheat"); } - for (int nybbleIndex = 0; nybbleIndex < wordSize; nybbleIndex++) + for (int nybbleIndex = 0; nybbleIndex < WordSize; nybbleIndex++) { - int index = wordIndex * wordSize + nybbleIndex; + int index = wordIndex * WordSize + nybbleIndex; instruction[index] = byte.Parse(word.AsSpan(nybbleIndex, 1), NumberStyles.HexNumber, CultureInfo.InvariantCulture); } |
