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