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:
parent
b8a0720121
commit
070cc59dbf
|
@ -118,6 +118,8 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||||
break;
|
break;
|
||||||
case "chip":
|
case "chip":
|
||||||
currCart.Chips.Add(xmlReader.GetAttribute("type"));
|
currCart.Chips.Add(xmlReader.GetAttribute("type"));
|
||||||
|
if (xmlReader.GetAttribute("battery") != null)
|
||||||
|
currCart.WramBattery = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
|
|
Loading…
Reference in New Issue