aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorBastien Bouclet2017-01-28 14:04:12 +0100
committerEugene Sandulenko2017-07-03 08:50:10 +0200
commit92e03a7b684c019d7670a56feb8e3a6cfd2e85b2 (patch)
tree61bc6f5a426a0c9a23232005f5e3bf56eb4ca2c3 /engines
parent79e086ba7b4e15b8281c88f52fd7a68e85dc7579 (diff)
downloadscummvm-rg350-92e03a7b684c019d7670a56feb8e3a6cfd2e85b2.tar.gz
scummvm-rg350-92e03a7b684c019d7670a56feb8e3a6cfd2e85b2.tar.bz2
scummvm-rg350-92e03a7b684c019d7670a56feb8e3a6cfd2e85b2.zip
MOHAWK: Add a command to check if background scripts are running
Diffstat (limited to 'engines')
-rw-r--r--engines/mohawk/riven_scripts.cpp4
-rw-r--r--engines/mohawk/riven_scripts.h3
2 files changed, 7 insertions, 0 deletions
diff --git a/engines/mohawk/riven_scripts.cpp b/engines/mohawk/riven_scripts.cpp
index 331f2261d5..22651fc981 100644
--- a/engines/mohawk/riven_scripts.cpp
+++ b/engines/mohawk/riven_scripts.cpp
@@ -124,6 +124,10 @@ void RivenScriptManager::runScript(const RivenScriptPtr &script, bool queue) {
}
}
+bool RivenScriptManager::hasQueuedScripts() const {
+ return !_queue.empty();
+}
+
RivenScriptPtr RivenScriptManager::createScriptFromData(uint16 commandCount, ...) {
va_list args;
va_start(args, commandCount);
diff --git a/engines/mohawk/riven_scripts.h b/engines/mohawk/riven_scripts.h
index a5c1ccbdad..665ff46c1f 100644
--- a/engines/mohawk/riven_scripts.h
+++ b/engines/mohawk/riven_scripts.h
@@ -144,6 +144,9 @@ public:
/** Run a script */
void runScript(const RivenScriptPtr &script, bool queue);
+ /** Are scripts running in the background */
+ bool hasQueuedScripts() const;
+
void stopAllScripts();
struct StoredMovieOpcode {