Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
TITANIC: Extra code in movie debugger command to aid reverse AVI testing
  • Loading branch information
dreammaster committed Jul 21, 2017
1 parent 28982aa commit 87d32c2
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions engines/titanic/debugger.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 87d32c2

Please sign in to comment.