aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2019-12-17 16:58:00 +0100
committerEugene Sandulenko2019-12-17 16:58:00 +0100
commit05c046252e4eeb42a4721c7857a0f11869353306 (patch)
treef1c00222ef3cf149634f22f9acd49da44c034817
parentb62e0886b8784f1f59cf8095b3257ac716683fee (diff)
downloadscummvm-rg350-05c046252e4eeb42a4721c7857a0f11869353306.tar.gz
scummvm-rg350-05c046252e4eeb42a4721c7857a0f11869353306.tar.bz2
scummvm-rg350-05c046252e4eeb42a4721c7857a0f11869353306.zip
DIRECTOR: Added debug channel for executing precompiled bytecode
-rw-r--r--engines/director/director.cpp1
-rw-r--r--engines/director/director.h3
-rw-r--r--engines/director/score.cpp3
3 files changed, 5 insertions, 2 deletions
diff --git a/engines/director/director.cpp b/engines/director/director.cpp
index 90f0c3faf4..f7b494d3f5 100644
--- a/engines/director/director.cpp
+++ b/engines/director/director.cpp
@@ -49,6 +49,7 @@ DirectorEngine::DirectorEngine(OSystem *syst, const DirectorGameDescription *gam
DebugMan.addDebugChannel(kDebugText, "text", "Text rendering");
DebugMan.addDebugChannel(kDebugEvents, "events", "Event processing");
DebugMan.addDebugChannel(kDebugSlow, "slow", "Slow playback");
+ DebugMan.addDebugChannel(kDebugBytecode, "bytecode", "Execute Lscr bytecode");
g_director = this;
diff --git a/engines/director/director.h b/engines/director/director.h
index e52bdb95e5..cc26993cd1 100644
--- a/engines/director/director.h
+++ b/engines/director/director.h
@@ -65,7 +65,8 @@ enum {
kDebugEvents = 1 << 5,
kDebugLingoParse = 1 << 6,
kDebugLingoCompileOnly = 1 << 7,
- kDebugSlow = 1 << 8
+ kDebugSlow = 1 << 8,
+ kDebugBytecode = 1 << 9
};
struct MovieReference {
diff --git a/engines/director/score.cpp b/engines/director/score.cpp
index 84039bee27..b32b436506 100644
--- a/engines/director/score.cpp
+++ b/engines/director/score.cpp
@@ -198,7 +198,8 @@ void Score::loadArchive() {
}
// Try to load compiled Lingo scripts
- if (_vm->getVersion() >= 4 && 0) {
+ // FIXME. Disabled by default, requires --debugflags=bytecode for now
+ if (_vm->getVersion() >= 4 && debugChannelSet(-1, kDebugBytecode)) {
Common::Array<uint16> lscr = _movieArchive->getResourceIDList(MKTAG('L','s','c','r'));
if (lscr.size() > 0) {
debugC(2, kDebugLoading, "****** Loading %d Lscr resources", lscr.size());