diff --git a/BizHawk.Client.Common/tools/CheatList.cs b/BizHawk.Client.Common/tools/CheatList.cs index 79a8cb95c7..01702817df 100644 --- a/BizHawk.Client.Common/tools/CheatList.cs +++ b/BizHawk.Client.Common/tools/CheatList.cs @@ -384,7 +384,9 @@ namespace BizHawk.Client.Common } else { - // Set to hex for saving + // Set to hex for saving + var temp_cheat_type = cheat.Type; + cheat.SetType(DisplayType.Hex); sb @@ -399,6 +401,9 @@ namespace BizHawk.Client.Common .Append((cheat.BigEndian ?? false) ? '1' : '0').Append('\t') .Append(cheat.ComparisonType).Append('\t') .AppendLine(); + + cheat.SetType(temp_cheat_type); + } } diff --git a/BizHawk.Client.EmuHawk/tools/Watch/WatchValueBox.cs b/BizHawk.Client.EmuHawk/tools/Watch/WatchValueBox.cs index ae4fbcc6cb..9ff28c358a 100644 --- a/BizHawk.Client.EmuHawk/tools/Watch/WatchValueBox.cs +++ b/BizHawk.Client.EmuHawk/tools/Watch/WatchValueBox.cs @@ -72,8 +72,8 @@ namespace BizHawk.Client.EmuHawk set { - _type = value; var val = ToRawInt(); + _type = value; SetMaxLength(); SetFromRawInt(val); }