aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/GBACart.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/GBACart.cpp b/src/GBACart.cpp
index 7c2faad..8ce76ab 100644
--- a/src/GBACart.cpp
+++ b/src/GBACart.cpp
@@ -156,6 +156,11 @@ bool LoadROM(const char* path, const char* sram)
return false;
}
+ if (CartInserted)
+ {
+ Reset();
+ }
+
fseek(f, 0, SEEK_END);
u32 len = (u32)ftell(f);