diff options
Diffstat (limited to 'engines/mohawk/myst_stacks/dni.cpp')
-rw-r--r-- | engines/mohawk/myst_stacks/dni.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/engines/mohawk/myst_stacks/dni.cpp b/engines/mohawk/myst_stacks/dni.cpp index b0b485b3cc..c668a8c37e 100644 --- a/engines/mohawk/myst_stacks/dni.cpp +++ b/engines/mohawk/myst_stacks/dni.cpp @@ -42,22 +42,18 @@ Dni::Dni(MohawkEngine_Myst *vm) : Dni::~Dni() { } -#define OPCODE(op, x) _opcodes.push_back(new MystOpcode(op, (OpcodeProcMyst) &Dni::x, #x)) - void Dni::setupOpcodes() { // "Stack-Specific" Opcodes - OPCODE(100, NOP); - OPCODE(101, o_handPage); + REGISTER_OPCODE(100, Dni, NOP); + REGISTER_OPCODE(101, Dni, o_handPage); // "Init" Opcodes - OPCODE(200, o_atrus_init); + REGISTER_OPCODE(200, Dni, o_atrus_init); // "Exit" Opcodes - OPCODE(300, NOP); + REGISTER_OPCODE(300, Dni, NOP); } -#undef OPCODE - void Dni::disablePersistentScripts() { _atrusRunning = false; _waitForLoop = false; |