GBHawk: Fix autosaving saveram.

This commit is contained in:
alyosha-tas 2018-06-24 15:55:33 -04:00
parent a15b31a46b
commit 4160af8eaa
1 changed files with 8 additions and 1 deletions

View File

@ -7,7 +7,14 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawk
{
public byte[] CloneSaveRam()
{
return (byte[])cart_RAM.Clone();
if (cart_RAM != null)
{
return (byte[])cart_RAM.Clone();
}
else
{
return null;
}
}
public void StoreSaveRam(byte[] data)