mirror of
https://github.com/libretro/Mesen.git
synced 2025-03-05 22:57:26 +00:00
Cheats: Fixed XML export code for custom codes - a compare value was always exported.
This commit is contained in:
parent
ee2898c328
commit
fc24993836
@ -30,7 +30,9 @@ namespace Mesen.GUI.Forms.Cheats
|
||||
case CheatType.Custom:
|
||||
writer.WriteElementString("address", "0x" + cheat.Address.ToString("X4"));
|
||||
writer.WriteElementString("value", "0x" + cheat.Value.ToString("X2"));
|
||||
writer.WriteElementString("compare", "0x" + cheat.CompareValue.ToString("X2"));
|
||||
if(cheat.UseCompareValue) {
|
||||
writer.WriteElementString("compare", "0x" + cheat.CompareValue.ToString("X2"));
|
||||
}
|
||||
if(!cheat.IsRelativeAddress) {
|
||||
writer.WriteElementString("isPrgOffset", "true");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user