aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphaël Zumer <rzumer@tebako.net>2019-12-08 15:55:06 -0500
committerRaphaël Zumer <rzumer@tebako.net>2019-12-08 15:55:06 -0500
commit91bf62a1d45fd8e81c6c77cb7072898f184c3a1c (patch)
tree1c4707b488d6ebc94f45b2029d8da0cf39b1a880
parent1da9b3806c67282f7fc2c48b5b0b4614e553c34d (diff)
Keep GBA carts loaded when booting to firmware
-rw-r--r--src/libui_sdl/main.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libui_sdl/main.cpp b/src/libui_sdl/main.cpp
index 68bc6b8..1e6069e 100644
--- a/src/libui_sdl/main.cpp
+++ b/src/libui_sdl/main.cpp
@@ -2065,6 +2065,12 @@ void OnRun(uiMenuItem* item, uiWindow* window, void* blarg)
{
ROMPath[0][0] = '\0';
NDS::LoadBIOS();
+
+ if (ROMPath[1][0] != '\0')
+ {
+ SetupSRAMPath(1);
+ NDS::LoadGBAROM(ROMPath[1], SRAMPath[1]);
+ }
}
Run();