diff options
author | Matthew Hoops | 2014-07-11 23:29:37 -0400 |
---|---|---|
committer | Matthew Hoops | 2014-07-11 23:29:37 -0400 |
commit | 3ddf04465eb8a7d1e6ad6ade374bc30eecdd72c0 (patch) | |
tree | b792e79895cfa3d78bb153454d92d8e30cc3ae74 /engines/made | |
parent | b6164d10e51338d89fa5f265161b0b57b98d5049 (diff) | |
download | scummvm-rg350-3ddf04465eb8a7d1e6ad6ade374bc30eecdd72c0.tar.gz scummvm-rg350-3ddf04465eb8a7d1e6ad6ade374bc30eecdd72c0.tar.bz2 scummvm-rg350-3ddf04465eb8a7d1e6ad6ade374bc30eecdd72c0.zip |
MADE: Error out when a blocks file fails to open
Diffstat (limited to 'engines/made')
-rw-r--r-- | engines/made/resource.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/made/resource.cpp b/engines/made/resource.cpp index 1bb328c7a2..2c75965976 100644 --- a/engines/made/resource.cpp +++ b/engines/made/resource.cpp @@ -441,7 +441,8 @@ void ResourceReader::openResourceBlocks() { } void ResourceReader::openResourceBlock(const char *filename, Common::File *blockFile, uint32 resType) { - blockFile->open(filename); + if (!blockFile->open(filename)) + error("Failed to open '%s'", filename); blockFile->readUint16LE(); // Skip unused uint16 count = blockFile->readUint16LE(); |