a bit of cleanup
This commit is contained in:
parent
b080d6d09e
commit
06e1149cfe
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue