aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine
diff options
context:
space:
mode:
authorMax Horn2009-02-20 15:44:22 +0000
committerMax Horn2009-02-20 15:44:22 +0000
commit7422e98f8f3be70347243b353144178dfd248fcd (patch)
treeacec8a2fd40d5c6660a7c7326165d5fd14974a33 /engines/sci/engine
parentf78f2aeafcbd40059765a46d4d4bd7c11e1af84e (diff)
downloadscummvm-rg350-7422e98f8f3be70347243b353144178dfd248fcd.tar.gz
scummvm-rg350-7422e98f8f3be70347243b353144178dfd248fcd.tar.bz2
scummvm-rg350-7422e98f8f3be70347243b353144178dfd248fcd.zip
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
Diffstat (limited to 'engines/sci/engine')
-rw-r--r--engines/sci/engine/vm.cpp3
1 files changed, 2 insertions, 1 deletions
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 */