From 4dd4e839ff92b461b0940d314b84af93f23a1b6b Mon Sep 17 00:00:00 2001 From: adelikat Date: Wed, 17 Dec 2014 01:32:22 +0000 Subject: [PATCH] GB Game Genie - for now add a Gameboy object as a required service, even though it doesn't get used, the tool isn't useful and should not be used on any other core --- BizHawk.Client.EmuHawk/tools/GB/GBGameGenie.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/BizHawk.Client.EmuHawk/tools/GB/GBGameGenie.cs b/BizHawk.Client.EmuHawk/tools/GB/GBGameGenie.cs index 64466f9b8d..b49a993cda 100644 --- a/BizHawk.Client.EmuHawk/tools/GB/GBGameGenie.cs +++ b/BizHawk.Client.EmuHawk/tools/GB/GBGameGenie.cs @@ -7,6 +7,7 @@ using System.Windows.Forms; using BizHawk.Emulation.Common; using BizHawk.Emulation.Common.IEmulatorExtensions; using BizHawk.Client.Common; +using BizHawk.Emulation.Cores.Nintendo.Gameboy; namespace BizHawk.Client.EmuHawk { @@ -15,8 +16,13 @@ namespace BizHawk.Client.EmuHawk // TODO: fix the use of Global.Game.System and Emulator.SystemId [RequiredService] private IEmulator Emulator { get; set; } + [RequiredService] private IMemoryDomains MemoryDomainSource { get; set; } + + [RequiredService] + private Gameboy Gb { get; set; } + private MemoryDomainList MemoryDomains { get { return MemoryDomainSource.MemoryDomains; } } private readonly Dictionary _gameGenieTable = new Dictionary();