public void DecodeGameGenieCode(string code) { var decoder = new NESGameGenieDecoder(code); _address = decoder.Address; _value = decoder.Value; _compare = decoder.Compare; SetProperties(); }
public void RemoveGameGenie(string code) { if (NESAvailable) { var decoder = new NESGameGenieDecoder(code); Global.CheatList.RemoveRange( Global.CheatList.Where(x => x.Address == decoder.Address)); } }
public void RemoveGameGenie(string code) { if (Global.Emulator.SystemId == "NES") { var decoder = new NESGameGenieDecoder(code); Global.CheatList.RemoveRange( Global.CheatList.Where(x => x.Address == decoder.Address)); } }
public void AddGameGenie(string code) { if (NESAvailable) { var decoder = new NESGameGenieDecoder(code); var watch = Watch.GenerateWatch( Global.Emulator.AsMemoryDomains()["System Bus"], decoder.Address, WatchSize.Byte, DisplayType.Hex, false, code); Global.CheatList.Add(new Cheat( watch, decoder.Value, decoder.Compare)); } }