diff options
author | Raphaël Zumer <rzumer@tebako.net> | 2019-12-08 15:55:06 -0500 |
---|---|---|
committer | Raphaël Zumer <rzumer@tebako.net> | 2019-12-08 15:55:06 -0500 |
commit | 91bf62a1d45fd8e81c6c77cb7072898f184c3a1c (patch) | |
tree | 1c4707b488d6ebc94f45b2029d8da0cf39b1a880 | |
parent | 1da9b3806c67282f7fc2c48b5b0b4614e553c34d (diff) |
Keep GBA carts loaded when booting to firmware
-rw-r--r-- | src/libui_sdl/main.cpp | 6 |
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(); |