diff options
Diffstat (limited to 'engines/mohawk/myst_stacks/slides.cpp')
-rw-r--r-- | engines/mohawk/myst_stacks/slides.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/engines/mohawk/myst_stacks/slides.cpp b/engines/mohawk/myst_stacks/slides.cpp index 070724c221..f8c388d7bc 100644 --- a/engines/mohawk/myst_stacks/slides.cpp +++ b/engines/mohawk/myst_stacks/slides.cpp @@ -41,18 +41,14 @@ Slides::Slides(MohawkEngine_Myst *vm) : MystScriptParser(vm) { Slides::~Slides() { } -#define OPCODE(op, x) _opcodes.push_back(new MystOpcode(op, (OpcodeProcMyst) &Slides::x, #x)) - void Slides::setupOpcodes() { // "Stack-Specific" Opcodes - OPCODE(100, o_returnToMenu); + REGISTER_OPCODE(100, Slides, o_returnToMenu); // "Init" Opcodes - OPCODE(200, o_setCardSwap); + REGISTER_OPCODE(200, Slides, o_setCardSwap); } -#undef OPCODE - void Slides::disablePersistentScripts() { _cardSwapEnabled = false; } |