aboutsummaryrefslogtreecommitdiff
path: root/engines/lab/engine.cpp
diff options
context:
space:
mode:
authorStrangerke2015-11-29 21:54:19 +0100
committerWillem Jan Palenstijn2015-12-23 21:33:43 +0100
commit18fc6fd10207ccf425f85e98da23c121ee75af98 (patch)
tree900e22f4d61a35678111d842fc1ab881b2b3b99c /engines/lab/engine.cpp
parentd96484d81c2645b7b714845a9176ba264f52bbc0 (diff)
downloadscummvm-rg350-18fc6fd10207ccf425f85e98da23c121ee75af98.tar.gz
scummvm-rg350-18fc6fd10207ccf425f85e98da23c121ee75af98.tar.bz2
scummvm-rg350-18fc6fd10207ccf425f85e98da23c121ee75af98.zip
LAB: Add some feedback when a file isn't found
Diffstat (limited to 'engines/lab/engine.cpp')
-rw-r--r--engines/lab/engine.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/lab/engine.cpp b/engines/lab/engine.cpp
index edf23f307a..7af3719ae7 100644
--- a/engines/lab/engine.cpp
+++ b/engines/lab/engine.cpp
@@ -230,6 +230,9 @@ bool LabEngine::setUpScreens() {
/* Loads in the graphics for the movement control panel */
Common::File file;
file.open(translateFileName("P:Control"));
+ if (!file.isOpen())
+ warning("setUpScreens couldn't open %s", translateFileName("P:Control"));
+
if (file.err() || file.size() == 0)
return false;
@@ -290,6 +293,9 @@ bool LabEngine::setUpScreens() {
}
file.open(translateFileName("P:Inv"));
+ if (!file.isOpen())
+ warning("setUpScreens couldn't open %s", translateFileName("P:Inv"));
+
if (file.err() || file.size() == 0)
return false;