aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/simon/animation.cpp5
-rw-r--r--engines/simon/items.cpp6
2 files changed, 4 insertions, 7 deletions
diff --git a/engines/simon/animation.cpp b/engines/simon/animation.cpp
index bc056cb51e..e4353c9815 100644
--- a/engines/simon/animation.cpp
+++ b/engines/simon/animation.cpp
@@ -78,8 +78,10 @@ bool MoviePlayer::load(const char *filename) {
filename2[len++] = 'x';
filename2[len++] = 'a';
- if (_fd.open(filename2) == false)
+ if (_fd.open(filename2) == false) {
+ warning("Failed to load video file %s", filename2);
return false;
+ }
tag = _fd.readUint32BE();
assert(tag == MKID_BE('DEXA'));
@@ -130,7 +132,6 @@ void MoviePlayer::play() {
}
if (_fd.isOpen() == false) {
- debug(0, "MoviePlayer::play: No file loaded");
return;
}
diff --git a/engines/simon/items.cpp b/engines/simon/items.cpp
index 75c06faf2a..5097467ac6 100644
--- a/engines/simon/items.cpp
+++ b/engines/simon/items.cpp
@@ -2040,15 +2040,11 @@ void SimonEngine::o3_mouseOff() {
void SimonEngine::o3_loadVideo() {
// 182: load video file
const byte *filename = getStringPtrByID(getNextStringID());
- debug(0, "Load video %s", filename);
-
- if (_moviePlay->load((const char *)filename) == false)
- warning("Failed to load video file %s", filename);
+ _moviePlay->load((const char *)filename);
}
void SimonEngine::o3_playVideo() {
// 183: play video
- debug(0, "Play video");
_moviePlay->play();
}