diff options
author | Eugene Sandulenko | 2019-12-10 23:09:15 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2019-12-11 00:45:12 +0100 |
commit | 3c37e63780a58b42c9473224306f89be17f2196f (patch) | |
tree | 221c575345fcc063a7c1bc907d4a53ba07124b87 /engines/director | |
parent | d43163b37cf4bc753f99fb8817a7ab3dac15236c (diff) | |
download | scummvm-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.cpp | 3 |
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++; |