Eject GBA cartridges on stop from the UI

This commit is contained in:
Raphaël Zumer
2019-12-09 06:09:30 -05:00
parent 5ad85f15c1
commit 4e8b0c8ce4
2 changed files with 30 additions and 4 deletions

View File

@ -1674,6 +1674,9 @@ void Stop(bool internal)
while (EmuStatus != 2);
RunningSomething = false;
// eject any inserted GBA cartridge
ROMPath[1][0] = '\0';
uiWindowSetTitle(MainWindow, "melonDS " MELONDS_VERSION);
for (int i = 0; i < 9; i++) uiMenuItemDisable(MenuItem_SaveStateSlot[i]);