VS security in gamedb

This commit is contained in:
alyosha-tas 2016-10-31 09:58:13 -04:00 committed by GitHub
parent eda700d393
commit d8dfaf6d3d
2 changed files with 9 additions and 0 deletions

View File

@ -456,6 +456,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public List<string> chips = new List<string>();
public string palette; // Palette override for VS system
public byte vs_security; // for VS system games that do a ppu dheck
public override string ToString()
{
@ -573,6 +574,11 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
cart.palette = dict["palette"];
}
if (dict.ContainsKey("vs_security"))
{
cart.vs_security = byte.Parse(dict["vs_security"]);
}
return cart;
}

View File

@ -949,6 +949,9 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
case "2C04-3": SetPalette(Palettes.palette_2c04_003); break;
case "2C04-4": SetPalette(Palettes.palette_2c04_004); break;
}
//since this will run for every VS game, let's get security setting too
_isVS2c05 = cart.vs_security;
}
}