AxibugEmuOnline/AxibugEmuOnline.Client/Assets/VirtualNes.Core/State/MMCSTAT.cs
2024-08-29 17:20:01 +08:00

23 lines
469 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 (uint)mmcdata.Length;
}
public void SaveState(StateBuffer buffer)
{
buffer.Write(mmcdata);
}
}
}