Add a framework to support non-SRAM GBA saves

The support is not yet there, but at least
we should not read or write bogus data.
This commit is contained in:
Raphaël Zumer
2019-12-09 04:53:45 -05:00
parent 86b746dd1c
commit 5ad85f15c1
3 changed files with 171 additions and 38 deletions

View File

@ -29,6 +29,10 @@ namespace GBACart_SRAM
extern u8* SRAM;
extern u32 SRAMLength;
u8 Read8(u32 addr);
u16 Read16(u32 addr);
u32 Read32(u32 addr);
void Write8(u32 addr, u8 val);
void Write16(u32 addr, u16 val);
void Write32(u32 addr, u32 val);