From 7422e98f8f3be70347243b353144178dfd248fcd Mon Sep 17 00:00:00 2001 From: Max Horn Date: Fri, 20 Feb 2009 15:44:22 +0000 Subject: SCI: Added TODO suggestion to change the vm opcode switch/case to an opcode table with methods for each opcode (helps to separate code and deal with changed opcode numbering in other SCI versions) svn-id: r38594 --- engines/sci/engine/vm.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engines/sci/engine/vm.cpp') diff --git a/engines/sci/engine/vm.cpp b/engines/sci/engine/vm.cpp index c3cf243807..622fad8920 100644 --- a/engines/sci/engine/vm.cpp +++ b/engines/sci/engine/vm.cpp @@ -870,7 +870,8 @@ run_vm(state_t *s, int restoring) { } - + // TODO: Replace the following by an opcode table, and several methods for + // each opcode. switch (opnumber) { case 0x00: /* bnot */ -- cgit v1.2.3