a bit of cleanup

This commit is contained in:
adelikat 2019-12-13 12:35:45 -06:00
parent b080d6d09e
commit 06e1149cfe
1 changed files with 19 additions and 19 deletions

View File

@ -4,27 +4,27 @@ namespace BizHawk.Client.Common
{ {
public class NESGameGenieDecoder public class NESGameGenieDecoder
{ {
private readonly string _code = ""; private readonly string _code;
private readonly Dictionary<char, int> _gameGenieTable = new Dictionary<char, int> private readonly Dictionary<char, int> _gameGenieTable = new Dictionary<char, int>
{ {
{ 'A', 0 }, // 0000 ['A'] = 0, // 0000
{ 'P', 1 }, // 0001 ['P'] = 1, // 0001
{ 'Z', 2 }, // 0010 ['Z'] = 2, // 0010
{ 'L', 3 }, // 0011 ['L'] = 3, // 0011
{ 'G', 4 }, // 0100 ['G'] = 4, // 0100
{ 'I', 5 }, // 0101 ['I'] = 5, // 0101
{ 'T', 6 }, // 0110 ['T'] = 6, // 0110
{ 'Y', 7 }, // 0111 ['Y'] = 7, // 0111
{ 'E', 8 }, // 1000 ['E'] = 8, // 1000
{ 'O', 9 }, // 1001 ['O'] = 9, // 1001
{ 'X', 10 }, // 1010 ['X'] = 10, // 1010
{ 'U', 11 }, // 1011 ['U'] = 11, // 1011
{ 'K', 12 }, // 1100 ['K'] = 12, // 1100
{ 'S', 13 }, // 1101 ['S'] = 13, // 1101
{ 'V', 14 }, // 1110 ['V'] = 14, // 1110
{ 'N', 15 }, // 1111 ['N'] = 15 // 1111
}; };
public NESGameGenieDecoder(string code) public NESGameGenieDecoder(string code)
{ {