GBA.Unity/Assets/emulator/saving/NullSaveProvider.cs

27 lines
468 B
C#
Raw Normal View History

2024-08-16 11:06:40 +08:00
using System;
using static OptimeGBA.Bits;
namespace OptimeGBA
{
public sealed class NullSaveProvider : SaveProvider
{
public override byte Read8(uint addr)
{
return 0;
}
public override void Write8(uint addr, byte val)
{
}
public override byte[] GetSave()
{
return new byte[0];
}
public override void LoadSave(byte[] save)
{
}
}
}