add menu items for running the firmware and for quitting.

This commit is contained in:
Arisotura
2020-04-28 22:45:11 +02:00
parent 0913576ef5
commit 63efc2e02a
4 changed files with 69 additions and 3 deletions

View File

@ -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];