aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2017-07-20 21:21:20 -0400
committerPaul Gilbert2017-07-20 21:21:20 -0400
commit87d32c23c01f7a4fee8cd5881f2e7807732a4b35 (patch)
tree19432e1265861d55c09c61afb443545d23a76373
parent28982aa9a5bd6389f30b62b3ad042897ffa7fd2a (diff)
downloadscummvm-rg350-87d32c23c01f7a4fee8cd5881f2e7807732a4b35.tar.gz
scummvm-rg350-87d32c23c01f7a4fee8cd5881f2e7807732a4b35.tar.bz2
scummvm-rg350-87d32c23c01f7a4fee8cd5881f2e7807732a4b35.zip
TITANIC: Extra code in movie debugger command to aid reverse AVI testing
-rw-r--r--engines/titanic/debugger.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/engines/titanic/debugger.cpp b/engines/titanic/debugger.cpp
index bd42c95568..5f28aedeb7 100644
--- a/engines/titanic/debugger.cpp
+++ b/engines/titanic/debugger.cpp
@@ -280,6 +280,22 @@ bool Debugger::cmdMovie(int argc, const char **argv) {
}
CString filename(argv[1]);
+
+ if (filename == "reverse" || filename == "doubletake") {
+ // Tests reverse playback transparency frames
+ tester->loadMovie("y457.avi");
+ if (filename == "reverse") {
+ tester->playMovie(436, 0, MOVIE_STOP_PREVIOUS);
+ } else {
+ tester->playMovie(436, 432, MOVIE_STOP_PREVIOUS);
+ tester->playMovie(432, 436, 0);
+ tester->playMovie(436, 432, 0);
+ tester->playMovie(432, 436, 0);
+ }
+
+ return false;
+ }
+
if (!filename.hasSuffix(".avi"))
filename += ".avi";
tester->loadMovie(filename);