BizHawk/BizHawk.Emulation.Cores/Consoles/Nintendo/GBHawk/GBHawk.ISaveRam.cs

35 lines
581 B
C#
Raw Normal View History

2017-08-29 13:18:28 +00:00
using System;
using BizHawk.Emulation.Common;
namespace BizHawk.Emulation.Cores.Nintendo.GBHawk
{
public partial class GBHawk : ISaveRam
{
public byte[] CloneSaveRam()
{
2018-06-24 19:55:33 +00:00
if (cart_RAM != null)
{
return (byte[])cart_RAM.Clone();
}
else
{
return null;
}
2017-08-29 13:18:28 +00:00
}
public void StoreSaveRam(byte[] data)
{
2018-03-18 20:06:48 +00:00
Buffer.BlockCopy(data, 0, cart_RAM, 0, data.Length);
Console.WriteLine("loading SRAM here");
2017-08-29 13:18:28 +00:00
}
public bool SaveRamModified
{
get
{
2018-03-18 20:06:48 +00:00
return has_bat & _syncSettings.Use_SRAM;
2017-08-29 13:18:28 +00:00
}
}
}
}