diff options
author | Filippos Karapetis | 2010-06-17 00:07:03 +0000 |
---|---|---|
committer | Filippos Karapetis | 2010-06-17 00:07:03 +0000 |
commit | a7b76c04d9df2c30d541554b9f907f6bcedd307a (patch) | |
tree | f963e8031ecbd8f59b0fb409399b9ccb7d6a37e9 /engines/sci/engine/kscripts.cpp | |
parent | 18dc295a339cb7cc618ba565f68d05c6eada9782 (diff) | |
download | scummvm-rg350-a7b76c04d9df2c30d541554b9f907f6bcedd307a.tar.gz scummvm-rg350-a7b76c04d9df2c30d541554b9f907f6bcedd307a.tar.bz2 scummvm-rg350-a7b76c04d9df2c30d541554b9f907f6bcedd307a.zip |
Added handling of VMD video files in kResCheck, fixes video playing in GK2
svn-id: r49913
Diffstat (limited to 'engines/sci/engine/kscripts.cpp')
-rw-r--r-- | engines/sci/engine/kscripts.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/sci/engine/kscripts.cpp b/engines/sci/engine/kscripts.cpp index a8cf92b2a6..88e765a0ff 100644 --- a/engines/sci/engine/kscripts.cpp +++ b/engines/sci/engine/kscripts.cpp @@ -29,6 +29,8 @@ #include "sci/engine/selector.h" #include "sci/engine/kernel.h" +#include "common/file.h" + namespace Sci { // Loads arbitrary resources of type 'restype' with resource numbers 'resnrs' @@ -93,6 +95,12 @@ reg_t kResCheck(EngineState *s, int argc, reg_t *argv) { Resource *res = NULL; ResourceType restype = (ResourceType)(argv[0].toUint16() & 0x7f); + if (restype == kResourceTypeVMD) { + char fileName[50]; + sprintf(fileName, "%d.vmd", argv[1].toUint16()); + return make_reg(0, Common::File::exists(fileName)); + } + if ((restype == kResourceTypeAudio36) || (restype == kResourceTypeSync36)) { if (argc >= 6) { uint noun = argv[2].toUint16() & 0xff; |