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