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

28 lines
570 B
C#
Raw Normal View History

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