aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2020-01-09 17:11:03 +0100
committerEugene Sandulenko2020-01-09 17:11:31 +0100
commit625f3c1c28a42e407bccb2228053be8717dbdc48 (patch)
tree63bbdbd7d3a3ec49a0b66d66f15e9c692f4a4fb7
parent5264fecd03cc26731624214a0c09835bb881bac2 (diff)
downloadscummvm-rg350-625f3c1c28a42e407bccb2228053be8717dbdc48.tar.gz
scummvm-rg350-625f3c1c28a42e407bccb2228053be8717dbdc48.tar.bz2
scummvm-rg350-625f3c1c28a42e407bccb2228053be8717dbdc48.zip
DIRECTOR: Do not start main loop when compile only is requested
-rw-r--r--engines/director/director.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/engines/director/director.cpp b/engines/director/director.cpp
index 2835863a11..cc63e5142c 100644
--- a/engines/director/director.cpp
+++ b/engines/director/director.cpp
@@ -204,11 +204,13 @@ Common::Error DirectorEngine::run() {
_nextMovie.frameI = -1;
}
- debugC(1, kDebugEvents, "Starting playback of score '%s'", _currentScore->getMacName().c_str());
+ if (!debugChannelSet(-1, kDebugLingoCompileOnly)) {
+ debugC(1, kDebugEvents, "Starting playback of score '%s'", _currentScore->getMacName().c_str());
- _currentScore->startLoop();
+ _currentScore->startLoop();
- debugC(1, kDebugEvents, "Finished playback of score '%s'", _currentScore->getMacName().c_str());
+ debugC(1, kDebugEvents, "Finished playback of score '%s'", _currentScore->getMacName().c_str());
+ }
if (getGameID() == GID_TESTALL) {
_nextMovie = getNextMovieFromQueue();