forked from sin365/AxibugEmuOnline
28 lines
565 B
C#
28 lines
565 B
C#
namespace VirtualNes.Core
|
|
{
|
|
public struct MMCSTAT : IStateBufferObject
|
|
{
|
|
public byte[] mmcdata;
|
|
|
|
public static MMCSTAT GetDefault()
|
|
{
|
|
return new MMCSTAT() { mmcdata = new byte[256] };
|
|
}
|
|
|
|
public readonly uint GetSize()
|
|
{
|
|
return 256;
|
|
}
|
|
|
|
public readonly void SaveState(StateBuffer buffer)
|
|
{
|
|
buffer.Write(mmcdata);
|
|
}
|
|
|
|
public void LoadState(StateReader buffer)
|
|
{
|
|
mmcdata = buffer.Read_bytes(256);
|
|
}
|
|
}
|
|
}
|