2024-12-17 01:30:13 +08:00
|
|
|
|
namespace VirtualNes.Core
|
|
|
|
|
{
|
|
|
|
|
public struct EXCTRSTAT : IStateBufferObject
|
|
|
|
|
{
|
|
|
|
|
public uint data;
|
|
|
|
|
|
2024-12-20 17:24:09 +08:00
|
|
|
|
public uint GetSize()
|
2024-12-17 01:30:13 +08:00
|
|
|
|
{
|
|
|
|
|
return sizeof(uint);
|
|
|
|
|
}
|
|
|
|
|
|
2024-12-20 17:24:09 +08:00
|
|
|
|
public void SaveState(StateBuffer buffer)
|
2024-12-17 01:30:13 +08:00
|
|
|
|
{
|
|
|
|
|
buffer.Write(data);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void LoadState(StateReader buffer)
|
|
|
|
|
{
|
|
|
|
|
data = buffer.Read_uint();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|