aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/myst_areas.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/mohawk/myst_areas.cpp')
-rw-r--r--engines/mohawk/myst_areas.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/engines/mohawk/myst_areas.cpp b/engines/mohawk/myst_areas.cpp
index f83e2790db..7a65ecf701 100644
--- a/engines/mohawk/myst_areas.cpp
+++ b/engines/mohawk/myst_areas.cpp
@@ -216,6 +216,16 @@ void MystResourceType6::handleCardChange() {
playMovie();
}
+bool MystResourceType6::isPlaying() {
+ if (_videoRunning) {
+ VideoHandle handle = _vm->_video->findVideoHandle(0xFFFF);
+ if (handle != NULL_VID_HANDLE)
+ return !_vm->_video->endOfVideo(handle);
+ }
+
+ return false;
+}
+
MystResourceType7::MystResourceType7(MohawkEngine_Myst *vm, Common::SeekableReadStream *rlstStream, MystResource *parent) : MystResource(vm, rlstStream, parent) {
_var7 = rlstStream->readUint16LE();
_numSubResources = rlstStream->readUint16LE();