aboutsummaryrefslogtreecommitdiff
path: root/engines/made/made.cpp
diff options
context:
space:
mode:
authorBenjamin Haisch2008-05-20 20:00:10 +0000
committerBenjamin Haisch2008-05-20 20:00:10 +0000
commit828a217a03038673dfbd0f88a80f78832b55d872 (patch)
treeccd7503b1f376dd87e4c1b1051137a384b5405ce /engines/made/made.cpp
parent11697c0eb24aed6c6997c1d6282b69ed3448b1e9 (diff)
downloadscummvm-rg350-828a217a03038673dfbd0f88a80f78832b55d872.tar.gz
scummvm-rg350-828a217a03038673dfbd0f88a80f78832b55d872.tar.bz2
scummvm-rg350-828a217a03038673dfbd0f88a80f78832b55d872.zip
- Implemented "stand-alone" script dumper/disassembler; it can be enabled by defining DUMP_SCRIPTS in script.h and starting with at least debug level 1.
- Commented which script opcodes and extended functions are actually used or not. svn-id: r32202
Diffstat (limited to 'engines/made/made.cpp')
-rw-r--r--engines/made/made.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/made/made.cpp b/engines/made/made.cpp
index 4ec857547b..76482b03bb 100644
--- a/engines/made/made.cpp
+++ b/engines/made/made.cpp
@@ -206,7 +206,12 @@ int MadeEngine::go() {
}
_eventKey = _eventMouseX = _eventMouseY = 0;
+
+#ifdef DUMP_SCRIPTS
+ _script->dumpAllScripts();
+#else
_script->runScript(_dat->getMainCodeObjectIndex());
+#endif
return 0;
}