| 66 | // Functions corresponding to menu options |
| 67 | |
| 68 | void suspendFunc(int value) { |
| 69 | muteSND(); |
| 70 | if (!autoSavingEnabled) { |
| 71 | printMenuMessage("Saving SRAM..."); |
| 72 | saveGame(); |
| 73 | } |
| 74 | printMenuMessage("Saving state..."); |
| 75 | saveState(-1); |
| 76 | printMessage[0] = '\0'; |
| 77 | closeMenu(); |
| 78 | selectRom(); |
| 79 | } |
| 80 | void exitFunc(int value) { |
| 81 | muteSND(); |
| 82 | if (!autoSavingEnabled && numRamBanks && !gbsMode) { |