28 lines
570 B
C#
28 lines
570 B
C#
namespace VirtualNes.Core
|
|
{
|
|
public struct SNDSTAT : IStateBufferObject
|
|
{
|
|
public byte[] snddata;
|
|
|
|
public static SNDSTAT GetDefault()
|
|
{
|
|
return new SNDSTAT() { snddata = new byte[0x800] };
|
|
}
|
|
|
|
public uint GetSize()
|
|
{
|
|
return (uint)snddata.Length;
|
|
}
|
|
|
|
public void SaveState(StateBuffer buffer)
|
|
{
|
|
buffer.Write(snddata);
|
|
}
|
|
|
|
public void LoadState(StateReader buffer)
|
|
{
|
|
snddata = buffer.Read_bytes(0x800);
|
|
}
|
|
}
|
|
}
|