From f410612c3c16741598975adbc757f55a771f4261 Mon Sep 17 00:00:00 2001 From: adelikat Date: Mon, 15 Feb 2016 20:51:07 -0500 Subject: [PATCH] GameShark tool - for nes, if no description is set, then use the code itself, probably should do this on other ones too but I didn't feel like going through all the various places to put that logic --- BizHawk.Client.EmuHawk/tools/GameShark.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/BizHawk.Client.EmuHawk/tools/GameShark.cs b/BizHawk.Client.EmuHawk/tools/GameShark.cs index 366b1a3ac4..6c8dfc8b5a 100644 --- a/BizHawk.Client.EmuHawk/tools/GameShark.cs +++ b/BizHawk.Client.EmuHawk/tools/GameShark.cs @@ -2792,7 +2792,14 @@ namespace BizHawk.Client.EmuHawk //A Watch needs to be generated so we can make a cheat out of that. This is due to how the Cheat engine works. //System Bus Domain, The Address to Watch, Byte size (Word), Hex Display, Description. Big Endian. //We have a Byte sized value - var watch = Watch.GenerateWatch(MemoryDomains["System Bus"], long.Parse(RAMAddress, NumberStyles.HexNumber), WatchSize.Byte, Client.Common.DisplayType.Hex, false, txtDescription.Text); + + var description = SingleCheat; + if (!string.IsNullOrWhiteSpace(txtDescription.Text)) + { + description = txtDescription.Text; + } + + var watch = Watch.GenerateWatch(MemoryDomains["System Bus"], long.Parse(RAMAddress, NumberStyles.HexNumber), WatchSize.Byte, Client.Common.DisplayType.Hex, false, description); //Take Watch, Add our Value we want, and it should be active when addded? if (strCompare == "00") {