NES: Fix battery backup in certain bootgod identified games

If the wram with the battery backup on it is internal to the mapper asic, and not a separate ram chip, bootgod will have <chip battery=1> and not <wram battery=1>.  Fixes #2570.
This commit is contained in:
nattthebear 2021-01-17 09:06:33 -05:00
parent b8a0720121
commit 070cc59dbf
1 changed files with 15 additions and 13 deletions

View File

@ -118,6 +118,8 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
break;
case "chip":
currCart.Chips.Add(xmlReader.GetAttribute("type"));
if (xmlReader.GetAttribute("battery") != null)
currCart.WramBattery = true;
break;
}
} else