Unif: populate ci.wram_battery based on BATR chunk.

This commit is contained in:
goyuken 2012-10-17 00:44:34 +00:00
parent 4e079389da
commit 00c6259689
1 changed files with 4 additions and 0 deletions

View File

@ -82,6 +82,10 @@ namespace BizHawk.Emulation.Consoles.Nintendo
ci.board_type = ci.board_type.TrimEnd('\0');
ci.board_type = "UNIF_" + ci.board_type;
if (chunks.TryGetValue("BATR", out tmp))
// apparently, this chunk just existing means battery is yes
ci.wram_battery = true;
// is there any way using System.Security.Cryptography.SHA1 to compute the hash of
// prg concatentated with chr? i couldn't figure it out, so this implementation is dumb
{