From 581df3157c667e4165be1f5d6cdf37b429c1796e Mon Sep 17 00:00:00 2001 From: adelikat Date: Fri, 2 Jan 2015 17:41:56 +0000 Subject: [PATCH] Genesis Game Genie - restrict to the GPGX core so it isn't available on non-genesis systems --- BizHawk.Client.EmuHawk/tools/Genesis/GenGameGenie.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/BizHawk.Client.EmuHawk/tools/Genesis/GenGameGenie.cs b/BizHawk.Client.EmuHawk/tools/Genesis/GenGameGenie.cs index 1924772a95..76579f314f 100644 --- a/BizHawk.Client.EmuHawk/tools/Genesis/GenGameGenie.cs +++ b/BizHawk.Client.EmuHawk/tools/Genesis/GenGameGenie.cs @@ -8,14 +8,21 @@ using BizHawk.Emulation.Common; using BizHawk.Emulation.Common.IEmulatorExtensions; using BizHawk.Client.Common; +using BizHawk.Emulation.Cores.Consoles.Sega.gpgx; + namespace BizHawk.Client.EmuHawk { public partial class GenGameGenie : Form, IToolFormAutoConfig { #pragma warning disable 675 + /// + /// For now this is is an unecessary restriction to make sure it doesn't show up as available for non-genesis cores + /// Note: this unnecessarily prevents it from being on the Genesis core, but that's okay it isn't released + /// Eventually we want a generic game genie tool and a hack like this won't be necessary + /// [RequiredService] - private IEmulator Emulator { get; set; } + private GPGX Emulator { get; set; } [RequiredService] private IMemoryDomains MemoryDomainService { get; set; }