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

This commit is contained in:
adelikat 2014-12-17 01:32:22 +00:00
parent 78d462dda3
commit 4dd4e839ff
1 changed files with 6 additions and 0 deletions

View File

@ -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<char, int> _gameGenieTable = new Dictionary<char, int>();