From 06e1149cfe88f43dad5ba6a4963c8cea2ac75a42 Mon Sep 17 00:00:00 2001 From: adelikat Date: Fri, 13 Dec 2019 12:35:45 -0600 Subject: [PATCH] a bit of cleanup --- .../NESGameGenieEncoderDecoder.cs | 38 +++++++++---------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/BizHawk.Client.Common/NESGameGenieEncoderDecoder.cs b/BizHawk.Client.Common/NESGameGenieEncoderDecoder.cs index f986effd6a..bbc94f6e61 100644 --- a/BizHawk.Client.Common/NESGameGenieEncoderDecoder.cs +++ b/BizHawk.Client.Common/NESGameGenieEncoderDecoder.cs @@ -4,27 +4,27 @@ namespace BizHawk.Client.Common { public class NESGameGenieDecoder { - private readonly string _code = ""; + private readonly string _code; private readonly Dictionary _gameGenieTable = new Dictionary - { - { 'A', 0 }, // 0000 - { 'P', 1 }, // 0001 - { 'Z', 2 }, // 0010 - { 'L', 3 }, // 0011 - { 'G', 4 }, // 0100 - { 'I', 5 }, // 0101 - { 'T', 6 }, // 0110 - { 'Y', 7 }, // 0111 - { 'E', 8 }, // 1000 - { 'O', 9 }, // 1001 - { 'X', 10 }, // 1010 - { 'U', 11 }, // 1011 - { 'K', 12 }, // 1100 - { 'S', 13 }, // 1101 - { 'V', 14 }, // 1110 - { 'N', 15 }, // 1111 - }; + { + ['A'] = 0, // 0000 + ['P'] = 1, // 0001 + ['Z'] = 2, // 0010 + ['L'] = 3, // 0011 + ['G'] = 4, // 0100 + ['I'] = 5, // 0101 + ['T'] = 6, // 0110 + ['Y'] = 7, // 0111 + ['E'] = 8, // 1000 + ['O'] = 9, // 1001 + ['X'] = 10, // 1010 + ['U'] = 11, // 1011 + ['K'] = 12, // 1100 + ['S'] = 13, // 1101 + ['V'] = 14, // 1110 + ['N'] = 15 // 1111 + }; public NESGameGenieDecoder(string code) {