aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArisotura <thetotalworm@gmail.com>2022-03-04 20:54:45 +0100
committerArisotura <thetotalworm@gmail.com>2022-03-04 20:54:45 +0100
commitef7dfb887292d7b2042c296363d915594e69c301 (patch)
tree3b5e0c5b059969134a95e547c322b2f4b1a1b2aa /src
parentf4f6f6dfc5a8f4af0e79c96f3ac72433612f6015 (diff)
fix the GBA cart save shito, I guess
Diffstat (limited to 'src')
-rw-r--r--src/GBACart.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/GBACart.cpp b/src/GBACart.cpp
index 2bfe523..e09661e 100644
--- a/src/GBACart.cpp
+++ b/src/GBACart.cpp
@@ -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)