mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-02 23:26:44 +00:00
DIRECTOR: Do not attempt to execute scripts containing menus
This commit is contained in:
parent
d43163b37c
commit
3c37e63780
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user