AxibugEmuOnline/AxibugEmuOnline.Client.Transplant/Assets/VirtualNes.Core/State/MMCSTAT.cs

28 lines
547 B
C#

namespace VirtualNes.Core
{
public struct MMCSTAT : IStateBufferObject
{
public byte[] mmcdata;
public static MMCSTAT GetDefault()
{
return new MMCSTAT() { mmcdata = new byte[256] };
}
public uint GetSize()
{
return 256;
}
public void SaveState(StateBuffer buffer)
{
buffer.Write(mmcdata);
}
public void LoadState(StateReader buffer)
{
mmcdata = buffer.Read_bytes(256);
}
}
}