From d8dfaf6d3dc3ce6220003a5baaf7b1a14a494d89 Mon Sep 17 00:00:00 2001 From: alyosha-tas Date: Mon, 31 Oct 2016 09:58:13 -0400 Subject: [PATCH] VS security in gamedb --- .../Consoles/Nintendo/NES/NES.BoardSystem.cs | 6 ++++++ BizHawk.Emulation.Cores/Consoles/Nintendo/NES/NES.Core.cs | 3 +++ 2 files changed, 9 insertions(+) diff --git a/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/NES.BoardSystem.cs b/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/NES.BoardSystem.cs index b3cb24a24c..c22a282650 100644 --- a/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/NES.BoardSystem.cs +++ b/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/NES.BoardSystem.cs @@ -456,6 +456,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES public List chips = new List(); 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; } diff --git a/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/NES.Core.cs b/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/NES.Core.cs index 0053082aa4..9a6763f384 100644 --- a/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/NES.Core.cs +++ b/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/NES.Core.cs @@ -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; } }