GBHawk: Bug Fix

This commit is contained in:
alyosha-tas 2017-11-25 11:10:59 -05:00
parent 0b1bbe5b87
commit 35623000ac
2 changed files with 4 additions and 3 deletions

View File

@ -262,13 +262,14 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawk
cart_RAM = new byte[0x200];
}
Console.Write("RAM: ");Console.WriteLine(cart_RAM.Length);
mapper.Core = this;
mapper.Initialize();
if (cart_RAM != null)
{
Console.Write("RAM: "); Console.WriteLine(cart_RAM.Length);
if (_syncSettings.Use_SRAM)
{
// load cartRAM here

View File

@ -83,7 +83,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawk
{
if (addr < 0x2000)
{
RAM_enable = ((value & 0xA) == 0xA) ? true : false;
RAM_enable = (value & 0xA) == 0xA;
}
else if (addr < 0x4000)
{