aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorBastien Bouclet2011-02-12 20:19:00 +0100
committerBastien Bouclet2011-02-12 20:19:00 +0100
commit337044e11f6682e9cc9a50eeb71b4f9e8a6b94d5 (patch)
treeeea09e33b30b610c244fc63cc1ede07e3c545b8a /engines
parentd11b57e60935c1799b07445caf817c871391f2cf (diff)
downloadscummvm-rg350-337044e11f6682e9cc9a50eeb71b4f9e8a6b94d5.tar.gz
scummvm-rg350-337044e11f6682e9cc9a50eeb71b4f9e8a6b94d5.tar.bz2
scummvm-rg350-337044e11f6682e9cc9a50eeb71b4f9e8a6b94d5.zip
MOHAWK: Implement Mechanical opcode 125
Diffstat (limited to 'engines')
-rw-r--r--engines/mohawk/myst_stacks/mechanical.cpp13
-rw-r--r--engines/mohawk/myst_stacks/mechanical.h2
2 files changed, 5 insertions, 10 deletions
diff --git a/engines/mohawk/myst_stacks/mechanical.cpp b/engines/mohawk/myst_stacks/mechanical.cpp
index cffcf67cf8..b6209a933c 100644
--- a/engines/mohawk/myst_stacks/mechanical.cpp
+++ b/engines/mohawk/myst_stacks/mechanical.cpp
@@ -55,7 +55,7 @@ void MystScriptParser_Mechanical::setupOpcodes() {
OPCODE(122, opcode_122);
OPCODE(123, opcode_123);
OPCODE(124, opcode_124);
- OPCODE(125, opcode_125);
+ OPCODE(125, o_mystStaircaseMovie);
OPCODE(126, opcode_126);
OPCODE(127, opcode_127);
OPCODE(128, opcode_128);
@@ -292,15 +292,10 @@ void MystScriptParser_Mechanical::opcode_124(uint16 op, uint16 var, uint16 argc,
unknown(op, var, argc, argv);
}
-void MystScriptParser_Mechanical::opcode_125(uint16 op, uint16 var, uint16 argc, uint16 *argv) {
- if (argc == 0) {
- // Used on Card 6267 (Code Lock)
- // Called by Red Execute Button...
- debugC(kDebugScript, "Opcode %d: Code Lock Execute...", op);
+void MystScriptParser_Mechanical::o_mystStaircaseMovie(uint16 op, uint16 var, uint16 argc, uint16 *argv) {
+ debugC(kDebugScript, "Opcode %d: Myst book staircase video", op);
- // TODO: Fill in Logic For Code Lock...
- } else
- unknown(op, var, argc, argv);
+ _vm->_video->playMovieBlocking(_vm->wrapMovieFilename("sstairs", kMechanicalStack), 199, 108);
}
void MystScriptParser_Mechanical::opcode_126(uint16 op, uint16 var, uint16 argc, uint16 *argv) {
diff --git a/engines/mohawk/myst_stacks/mechanical.h b/engines/mohawk/myst_stacks/mechanical.h
index 8af5c5ed98..ef8612ff8c 100644
--- a/engines/mohawk/myst_stacks/mechanical.h
+++ b/engines/mohawk/myst_stacks/mechanical.h
@@ -74,7 +74,7 @@ private:
DECLARE_OPCODE(opcode_122);
DECLARE_OPCODE(opcode_123);
DECLARE_OPCODE(opcode_124);
- DECLARE_OPCODE(opcode_125);
+ DECLARE_OPCODE(o_mystStaircaseMovie);
DECLARE_OPCODE(opcode_126);
DECLARE_OPCODE(opcode_127);
DECLARE_OPCODE(opcode_128);