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

28 lines
549 B
C#
Raw Normal View History

namespace VirtualNes.Core
{
public struct MMCSTAT : IStateBufferObject
{
public byte[] mmcdata;
public static MMCSTAT GetDefault()
{
return new MMCSTAT() { mmcdata = new byte[256] };
}
2024-12-20 17:24:09 +08:00
public uint GetSize()
{
return 256;
}
2024-12-20 17:24:09 +08:00
public void SaveState(StateBuffer buffer)
{
buffer.Write(mmcdata);
}
public void LoadState(StateReader buffer)
{
mmcdata = buffer.Read_bytes(256);
}
}
}