fix the GBA cart save shito, I guess
This commit is contained in:
parent
f4f6f6dfc5
commit
ef7dfb8872
|
@ -103,6 +103,11 @@ CartGame::CartGame(u8* rom, u32 len) : CartCommon()
|
||||||
{
|
{
|
||||||
ROM = rom;
|
ROM = rom;
|
||||||
ROMLength = len;
|
ROMLength = len;
|
||||||
|
|
||||||
|
SRAM = nullptr;
|
||||||
|
SRAMLength = 0;
|
||||||
|
SRAMType = S_NULL;
|
||||||
|
SRAMFlashState = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
CartGame::~CartGame()
|
CartGame::~CartGame()
|
||||||
|
@ -122,11 +127,6 @@ u32 CartGame::Checksum()
|
||||||
void CartGame::Reset()
|
void CartGame::Reset()
|
||||||
{
|
{
|
||||||
memset(&GPIO, 0, sizeof(GPIO));
|
memset(&GPIO, 0, sizeof(GPIO));
|
||||||
|
|
||||||
SRAM = nullptr;
|
|
||||||
SRAMLength = 0;
|
|
||||||
SRAMType = S_NULL;
|
|
||||||
SRAMFlashState = {};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CartGame::DoSavestate(Savestate* file)
|
void CartGame::DoSavestate(Savestate* file)
|
||||||
|
|
Loading…
Reference in New Issue