support quicknes in lua nes.addgamegenie() and nes.removegamegenie()

This commit is contained in:
adelikat 2014-01-07 01:43:31 +00:00
parent 309626b8c8
commit 983346af38
1 changed files with 3 additions and 3 deletions

View File

@ -31,11 +31,11 @@ namespace BizHawk.Client.Common
public void nes_addgamegenie(string code)
{
if (Global.Emulator is NES)
if (Global.Emulator.SystemId == "NES")
{
var decoder = new NESGameGenieDecoder(code);
var watch = Watch.GenerateWatch(
Global.Emulator.MemoryDomains[1],
Global.Emulator.MemoryDomains["System Bus"],
decoder.Address,
Watch.WatchSize.Byte,
Watch.DisplayType.Hex,
@ -99,7 +99,7 @@ namespace BizHawk.Client.Common
public void nes_removegamegenie(string code)
{
if (Global.Emulator is NES)
if (Global.Emulator.SystemId == "NES")
{
var decoder = new NESGameGenieDecoder(code);
Global.CheatList.RemoveRange(