public void SaveSram(string filePath)
{
//If we have save RAM, try to save it
try
{
using (var writer = File.OpenWrite(filePath))
{
writer.Write(Memory.SRam, 0, 0x2000);
Debug.WriteLine(this, "SRAM saved !!", DebugStatus.Cool);
}
}
catch
{
Debug.WriteLine(this, "Could not save S-RAM.", DebugStatus.Error);
}
}