diff options
author | Torbjörn Andersson | 2006-03-31 06:42:56 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2006-03-31 06:42:56 +0000 |
commit | c26b762f481123b3b6b6e644fd8d1d43f543815f (patch) | |
tree | e56e0466fa62ab52756ad3b52764059e7d6438e8 /engines/scumm/insane/insane.cpp | |
parent | f991b88da8d4e4587236845eb323b2b0aaa4fbc1 (diff) | |
download | scummvm-rg350-c26b762f481123b3b6b6e644fd8d1d43f543815f.tar.gz scummvm-rg350-c26b762f481123b3b6b6e644fd8d1d43f543815f.tar.bz2 scummvm-rg350-c26b762f481123b3b6b6e644fd8d1d43f543815f.zip |
Made readFileToMem() print a more useful error message than "File is not open"
if the file could not be opened.
svn-id: r21508
Diffstat (limited to 'engines/scumm/insane/insane.cpp')
-rw-r--r-- | engines/scumm/insane/insane.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/scumm/insane/insane.cpp b/engines/scumm/insane/insane.cpp index 5f629d1e55..73f277ae7f 100644 --- a/engines/scumm/insane/insane.cpp +++ b/engines/scumm/insane/insane.cpp @@ -597,7 +597,8 @@ void Insane::readFileToMem(const char *name, byte **buf) { ScummFile in; uint32 len; - _vm->openFile(in, name); + if (!_vm->openFile(in, name)) + error("Cannot open file %s", name); len = in.size(); *buf = (byte *)malloc(len); in.read(*buf, len); |