diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/illusions/duckman/menusystem_duckman.cpp | 7 | ||||
-rw-r--r-- | engines/illusions/duckman/scriptopcodes_duckman.cpp | 2 | ||||
-rw-r--r-- | engines/illusions/saveload.cpp | 1 |
3 files changed, 8 insertions, 2 deletions
diff --git a/engines/illusions/duckman/menusystem_duckman.cpp b/engines/illusions/duckman/menusystem_duckman.cpp index f7f93ce0ea..50ce9326c0 100644 --- a/engines/illusions/duckman/menusystem_duckman.cpp +++ b/engines/illusions/duckman/menusystem_duckman.cpp @@ -161,7 +161,12 @@ BaseMenu *DuckmanMenuSystem::createPauseMenu() { } BaseMenu *DuckmanMenuSystem::createQueryRestartMenu() { - return 0; // TODO + BaseMenu *menu = new BaseMenu(this, 0x00120003, 12, 17, 11, 27, 2); + menu->addText("Do you really want to restart?"); + menu->addText("-----------------------------------"); + menu->addMenuItem(new MenuItem("Yes, let's try again", new MenuActionReturnChoice(this, getQueryConfirmationChoiceIndex()))); + menu->addMenuItem(new MenuItem("No, just kidding", new MenuActionLeaveMenu(this))); + return menu; } BaseMenu *DuckmanMenuSystem::createQueryQuitMenu() { diff --git a/engines/illusions/duckman/scriptopcodes_duckman.cpp b/engines/illusions/duckman/scriptopcodes_duckman.cpp index 66b45ad151..81c0c41e6c 100644 --- a/engines/illusions/duckman/scriptopcodes_duckman.cpp +++ b/engines/illusions/duckman/scriptopcodes_duckman.cpp @@ -683,7 +683,7 @@ void ScriptOpcodes_Duckman::opQuitGame(ScriptThread *scriptThread, OpCall &opCal void ScriptOpcodes_Duckman::opResetGame(ScriptThread *scriptThread, OpCall &opCall) { _vm->reset(); _vm->_input->activateButton(0xFFFF); - // TODO _vm->stopMusic(); + _vm->_soundMan->stopMidiMusic(); // TODO _vm->_gameStates->clear(); } diff --git a/engines/illusions/saveload.cpp b/engines/illusions/saveload.cpp index f3fae99d77..50a728a065 100644 --- a/engines/illusions/saveload.cpp +++ b/engines/illusions/saveload.cpp @@ -131,6 +131,7 @@ Common::Error IllusionsEngine::loadGameState(int slot) { if (!loadgame(fileName)) return Common::kReadingFailed; _resumeFromSavegameRequested = true; + _savegameSlotNum = slot; return Common::kNoError; } |