diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/illusions/duckman/scriptopcodes_duckman.cpp | 6 | ||||
-rw-r--r-- | engines/illusions/duckman/scriptopcodes_duckman.h | 1 |
2 files changed, 6 insertions, 1 deletions
diff --git a/engines/illusions/duckman/scriptopcodes_duckman.cpp b/engines/illusions/duckman/scriptopcodes_duckman.cpp index 07f83817a4..24d923e875 100644 --- a/engines/illusions/duckman/scriptopcodes_duckman.cpp +++ b/engines/illusions/duckman/scriptopcodes_duckman.cpp @@ -128,7 +128,7 @@ void ScriptOpcodes_Duckman::initOpcodes() { OPCODE(80, opAddMenuChoice); OPCODE(81, opDisplayMenu); OPCODE(82, opSwitchMenuChoice); - // TODO OPCODE(83, ); + OPCODE(83, opQuitGame); OPCODE(84, opResetGame); // TODO OPCODE(85, ); // TODO OPCODE(86, ); @@ -700,6 +700,10 @@ void ScriptOpcodes_Duckman::opSwitchMenuChoice(ScriptThread *scriptThread, OpCal opCall._deltaOfs += _vm->_menuChoiceOfs; } +void ScriptOpcodes_Duckman::opQuitGame(ScriptThread *scriptThread, OpCall &opCall) { + _vm->quitGame(); +} + void ScriptOpcodes_Duckman::opResetGame(ScriptThread *scriptThread, OpCall &opCall) { _vm->reset(); _vm->_input->activateButton(0xFFFF); diff --git a/engines/illusions/duckman/scriptopcodes_duckman.h b/engines/illusions/duckman/scriptopcodes_duckman.h index 63536b0295..f2a05e6b11 100644 --- a/engines/illusions/duckman/scriptopcodes_duckman.h +++ b/engines/illusions/duckman/scriptopcodes_duckman.h @@ -103,6 +103,7 @@ protected: void opAddMenuChoice(ScriptThread *scriptThread, OpCall &opCall); void opDisplayMenu(ScriptThread *scriptThread, OpCall &opCall); void opSwitchMenuChoice(ScriptThread *scriptThread, OpCall &opCall); + void opQuitGame(ScriptThread *scriptThread, OpCall &opCall); void opResetGame(ScriptThread *scriptThread, OpCall &opCall); void opDeactivateButton(ScriptThread *scriptThread, OpCall &opCall); void opActivateButton(ScriptThread *scriptThread, OpCall &opCall); |