diff options
author | Arisotura <thetotalworm@gmail.com> | 2020-04-28 22:45:11 +0200 |
---|---|---|
committer | Arisotura <thetotalworm@gmail.com> | 2020-04-28 22:45:11 +0200 |
commit | 63efc2e02aa51c44c9cb5abc621624aa1d7bf1e5 (patch) | |
tree | 8dedbbf4a9bc86439b9de0988491c34defbbb136 /src/frontend/Util_ROM.cpp | |
parent | 0913576ef598bee4d2ea3c4268a6a6f163cd90ef (diff) |
add menu items for running the firmware and for quitting.
Diffstat (limited to 'src/frontend/Util_ROM.cpp')
-rw-r--r-- | src/frontend/Util_ROM.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/frontend/Util_ROM.cpp b/src/frontend/Util_ROM.cpp index ffee69a..cf40a78 100644 --- a/src/frontend/Util_ROM.cpp +++ b/src/frontend/Util_ROM.cpp @@ -57,6 +57,22 @@ void SetupSRAMPath(int slot) strncpy(SRAMPath[slot] + strlen(ROMPath[slot]) - 3, "sav", 3); } +bool LoadBIOS() +{ + // TODO: + // original code in the libui frontend called NDS::LoadGBAROM() if needed + // should this be carried over here? + // is that behavior consistent with that of LoadROM() below? + + ROMPath[ROMSlot_NDS][0] = '\0'; + SRAMPath[ROMSlot_NDS][0] = '\0'; + + NDS::LoadBIOS(); + + // TODO: error reporting? + return true; +} + bool LoadROM(const char* file, int slot) { char oldpath[1024]; |