From 625f3c1c28a42e407bccb2228053be8717dbdc48 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Thu, 9 Jan 2020 17:11:03 +0100 Subject: DIRECTOR: Do not start main loop when compile only is requested --- engines/director/director.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'engines/director') 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(); -- cgit v1.2.3