diff options
author | johndoe123 | 2015-11-28 23:47:48 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2018-07-20 06:43:33 +0000 |
commit | bbbb0053e03706bcdd75c9df2e290985730bfde8 (patch) | |
tree | 759422725d9641eb072a4588dec5f52a4e08b158 /engines | |
parent | 5a69f7356130c08f6d0835e0ca6228d542d9fb73 (diff) | |
download | scummvm-rg350-bbbb0053e03706bcdd75c9df2e290985730bfde8.tar.gz scummvm-rg350-bbbb0053e03706bcdd75c9df2e290985730bfde8.tar.bz2 scummvm-rg350-bbbb0053e03706bcdd75c9df2e290985730bfde8.zip |
ILLUSIONS: DUCKMAN: Implement opcode 83
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); |