From 28c35a6274984f78654a455ece4eae4e5c24ff59 Mon Sep 17 00:00:00 2001 From: alyosha-tas Date: Tue, 22 Dec 2020 20:20:00 -0500 Subject: [PATCH] GBHawk:set initial HRAM to 0, this provides consistent sync when clearing RAM on console, where as 0xFF does not --- .../Consoles/Nintendo/GBHawk/GBHawk.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/BizHawk.Emulation.Cores/Consoles/Nintendo/GBHawk/GBHawk.cs b/src/BizHawk.Emulation.Cores/Consoles/Nintendo/GBHawk/GBHawk.cs index 2075e1dfd8..24142aedd3 100644 --- a/src/BizHawk.Emulation.Cores/Consoles/Nintendo/GBHawk/GBHawk.cs +++ b/src/BizHawk.Emulation.Cores/Consoles/Nintendo/GBHawk/GBHawk.cs @@ -228,12 +228,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawk for (int i = 0; i < ZP_RAM.Length; i++) { - ZP_RAM[i] = 0xFF; - } - - for (int i = 0; i < ZP_RAM.Length; i++) - { - ZP_RAM[i] = 0xFF; + ZP_RAM[i] = 0; } if (is_GBC)