mirror of
https://github.com/SourMesen/Mesen.git
synced 2025-04-02 10:52:48 -04:00
Cheats: Fixed XML export code for custom codes - a compare value was always exported.
This commit is contained in:
parent
ee2898c328
commit
fc24993836
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue