aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/riven_scripts.cpp
diff options
context:
space:
mode:
authorMatthew Hoops2015-07-15 23:59:21 -0400
committerMatthew Hoops2015-07-17 20:05:00 -0400
commit7e6c8be7db2449c1f793b6fb01af5613282e7f27 (patch)
tree02fd969920a4c0a4aad285462eee2050885e620e /engines/mohawk/riven_scripts.cpp
parent95b1288329b12dce9d96a1a97a28f1bc457d605f (diff)
downloadscummvm-rg350-7e6c8be7db2449c1f793b6fb01af5613282e7f27.tar.gz
scummvm-rg350-7e6c8be7db2449c1f793b6fb01af5613282e7f27.tar.bz2
scummvm-rg350-7e6c8be7db2449c1f793b6fb01af5613282e7f27.zip
MOHAWK: Make video handles actual objects
Diffstat (limited to 'engines/mohawk/riven_scripts.cpp')
-rw-r--r--engines/mohawk/riven_scripts.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/mohawk/riven_scripts.cpp b/engines/mohawk/riven_scripts.cpp
index 29ee5cd50b..caa235ec8b 100644
--- a/engines/mohawk/riven_scripts.cpp
+++ b/engines/mohawk/riven_scripts.cpp
@@ -493,7 +493,9 @@ void RivenScript::changeStack(uint16 op, uint16 argc, uint16 *argv) {
// Command 28: disable a movie
void RivenScript::disableMovie(uint16 op, uint16 argc, uint16 *argv) {
- _vm->_video->disableMovieRiven(argv[0]);
+ VideoHandle handle = _vm->_video->findVideoHandleRiven(argv[0]);
+ if (handle)
+ handle->setEnabled(false);
}
// Command 29: disable all movies
@@ -503,7 +505,9 @@ void RivenScript::disableAllMovies(uint16 op, uint16 argc, uint16 *argv) {
// Command 31: enable a movie
void RivenScript::enableMovie(uint16 op, uint16 argc, uint16 *argv) {
- _vm->_video->enableMovieRiven(argv[0]);
+ VideoHandle handle = _vm->_video->findVideoHandleRiven(argv[0]);
+ if (handle)
+ handle->setEnabled(true);
}
// Command 32: play foreground movie - blocking (movie_id)