aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrichiesams2013-07-12 00:44:05 -0500
committerrichiesams2013-08-04 13:32:16 -0500
commit09358141de42a2ecb4ad487145dc52345814f8a1 (patch)
tree0dd06a7f3f4ee1eb6f0d778df515163dba85f854
parentae84e9508e846e7cfd39652f74c0816b399409e7 (diff)
downloadscummvm-rg350-09358141de42a2ecb4ad487145dc52345814f8a1.tar.gz
scummvm-rg350-09358141de42a2ecb4ad487145dc52345814f8a1.tar.bz2
scummvm-rg350-09358141de42a2ecb4ad487145dc52345814f8a1.zip
ZVISION: Allow the console to stay open when errors occur
-rw-r--r--engines/zvision/console.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/zvision/console.cpp b/engines/zvision/console.cpp
index 3721c94f42..f038af1232 100644
--- a/engines/zvision/console.cpp
+++ b/engines/zvision/console.cpp
@@ -38,7 +38,7 @@ Console::Console(ZVision *engine) : GUI::Debugger(), _engine(engine) {
bool Console::cmdLoadImage(int argc, const char **argv) {
if (argc != 4) {
DebugPrintf("Use loadimage <fileName> <x> <y> to load an image to the screen");
- return false;
+ return true;
}
_engine->renderImageToScreen(argv[1], atoi(argv[2]), atoi(argv[3]));
@@ -48,7 +48,7 @@ bool Console::cmdLoadImage(int argc, const char **argv) {
bool Console::cmdLoadVideo(int argc, const char **argv) {
if (argc != 2) {
DebugPrintf("Use loadvideo <fileName> to load a video to the screen");
- return false;
+ return true;
}
Video::VideoDecoder *videoDecoder = new ZorkAVIDecoder();