2012-11-19 19:07:38 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
namespace BizHawk.Emulation.Computers.Commodore64
|
|
|
|
|
{
|
|
|
|
|
public partial class C64 : IEmulator
|
|
|
|
|
{
|
|
|
|
|
public void ClearSaveRam()
|
|
|
|
|
{
|
|
|
|
|
}
|
2012-11-19 21:18:16 +00:00
|
|
|
|
|
2012-11-19 19:07:38 +00:00
|
|
|
|
public void LoadStateBinary(BinaryReader br)
|
|
|
|
|
{
|
2012-11-21 01:30:54 +00:00
|
|
|
|
SyncState(new Serializer(br));
|
2012-11-19 19:07:38 +00:00
|
|
|
|
}
|
2012-11-19 21:18:16 +00:00
|
|
|
|
|
2012-11-19 19:07:38 +00:00
|
|
|
|
public void LoadStateText(TextReader reader)
|
|
|
|
|
{
|
2012-11-21 01:30:54 +00:00
|
|
|
|
SyncState(new Serializer(reader));
|
2012-11-19 19:07:38 +00:00
|
|
|
|
}
|
2012-11-19 21:18:16 +00:00
|
|
|
|
|
2012-11-19 19:07:38 +00:00
|
|
|
|
public byte[] ReadSaveRam()
|
|
|
|
|
{
|
|
|
|
|
return null;
|
|
|
|
|
}
|
2012-11-19 21:18:16 +00:00
|
|
|
|
|
|
|
|
|
// TODO: when disk support is finished, set this flag according to if any writes to disk were done
|
2012-11-19 19:07:38 +00:00
|
|
|
|
public bool SaveRamModified
|
|
|
|
|
{
|
2012-11-19 21:18:16 +00:00
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
}
|
2012-11-19 19:07:38 +00:00
|
|
|
|
}
|
2012-11-19 21:18:16 +00:00
|
|
|
|
|
2012-11-19 19:07:38 +00:00
|
|
|
|
public void SaveStateBinary(BinaryWriter bw)
|
|
|
|
|
{
|
2012-11-21 01:30:54 +00:00
|
|
|
|
SyncState(new Serializer(bw));
|
2012-11-19 19:07:38 +00:00
|
|
|
|
}
|
|
|
|
|
|
2012-11-21 01:30:54 +00:00
|
|
|
|
public void SaveStateText(TextWriter writer)
|
2012-11-19 19:07:38 +00:00
|
|
|
|
{
|
2012-11-21 01:30:54 +00:00
|
|
|
|
SyncState(new Serializer(writer));
|
2012-11-19 19:07:38 +00:00
|
|
|
|
}
|
2012-11-20 02:37:42 +00:00
|
|
|
|
|
2012-11-21 01:30:54 +00:00
|
|
|
|
public void StoreSaveRam(byte[] data)
|
2012-11-20 02:37:42 +00:00
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2012-11-21 01:30:54 +00:00
|
|
|
|
void SyncState(Serializer ser)
|
2012-11-20 02:37:42 +00:00
|
|
|
|
{
|
2012-12-05 21:07:51 +00:00
|
|
|
|
board.SyncState(ser);
|
2012-12-03 08:38:12 +00:00
|
|
|
|
ser.BeginSection("core");
|
|
|
|
|
ser.Sync("cyclesPerFrame", ref cyclesPerFrame);
|
|
|
|
|
ser.Sync("loadPrg", ref loadPrg);
|
|
|
|
|
ser.EndSection();
|
2012-11-20 03:45:58 +00:00
|
|
|
|
}
|
2012-11-19 19:07:38 +00:00
|
|
|
|
}
|
|
|
|
|
}
|