aboutsummaryrefslogtreecommitdiff
path: root/engines/director
diff options
context:
space:
mode:
authorEugene Sandulenko2019-12-10 23:09:15 +0100
committerEugene Sandulenko2019-12-11 00:45:12 +0100
commit3c37e63780a58b42c9473224306f89be17f2196f (patch)
tree221c575345fcc063a7c1bc907d4a53ba07124b87 /engines/director
parentd43163b37cf4bc753f99fb8817a7ab3dac15236c (diff)
downloadscummvm-rg350-3c37e63780a58b42c9473224306f89be17f2196f.tar.gz
scummvm-rg350-3c37e63780a58b42c9473224306f89be17f2196f.tar.bz2
scummvm-rg350-3c37e63780a58b42c9473224306f89be17f2196f.zip
DIRECTOR: Do not attempt to execute scripts containing menus
Diffstat (limited to 'engines/director')
-rw-r--r--engines/director/score.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/director/score.cpp b/engines/director/score.cpp
index 42937add74..e462fd51d7 100644
--- a/engines/director/score.cpp
+++ b/engines/director/score.cpp
@@ -958,6 +958,9 @@ void Score::loadScriptText(Common::SeekableSubReadStreamEndian &stream) {
if (ConfMan.getBool("dump_scripts"))
dumpScript(script.c_str(), kMovieScript, _movieScriptCount);
+ if (script.contains("\nmenu:") || script.hasPrefix("menu:"))
+ return;
+
_lingo->addCode(script.c_str(), kMovieScript, _movieScriptCount);
_movieScriptCount++;