fix the GBA cart save shito, I guess

This commit is contained in:
Arisotura 2022-03-04 20:54:45 +01:00
parent f4f6f6dfc5
commit ef7dfb8872
1 changed files with 5 additions and 5 deletions

View File

@ -103,6 +103,11 @@ CartGame::CartGame(u8* rom, u32 len) : CartCommon()
{
ROM = rom;
ROMLength = len;
SRAM = nullptr;
SRAMLength = 0;
SRAMType = S_NULL;
SRAMFlashState = {};
}
CartGame::~CartGame()
@ -122,11 +127,6 @@ u32 CartGame::Checksum()
void CartGame::Reset()
{
memset(&GPIO, 0, sizeof(GPIO));
SRAM = nullptr;
SRAMLength = 0;
SRAMType = S_NULL;
SRAMFlashState = {};
}
void CartGame::DoSavestate(Savestate* file)