diff options
author | Robert Göffringmann | 2005-10-26 05:33:23 +0000 |
---|---|---|
committer | Robert Göffringmann | 2005-10-26 05:33:23 +0000 |
commit | 6cb96049fb40b71e5c467d57755d401680c76737 (patch) | |
tree | 02c255891284a1faba8648e1ba7fd7754adc0541 /sword1 | |
parent | 0aaecdcf2f1b4ec0799b159768bbcc56b9cf8a79 (diff) | |
download | scummvm-rg350-6cb96049fb40b71e5c467d57755d401680c76737.tar.gz scummvm-rg350-6cb96049fb40b71e5c467d57755d401680c76737.tar.bz2 scummvm-rg350-6cb96049fb40b71e5c467d57755d401680c76737.zip |
include the datafile's name in error() message when I/O errors occur.
svn-id: r19291
Diffstat (limited to 'sword1')
-rw-r--r-- | sword1/resman.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sword1/resman.cpp b/sword1/resman.cpp index fbb4b22113..5f4e521f9e 100644 --- a/sword1/resman.cpp +++ b/sword1/resman.cpp @@ -257,8 +257,9 @@ void ResMan::resOpen(uint32 id) { // load resource ID into memory assert(clusFile); clusFile->seek( resOffset(id) ); clusFile->read( memHandle->data, size); - if (clusFile->ioFailed()) - error("Can't read %d bytes from cluster %d\n", size, id); + if (clusFile->ioFailed()) { + error("Can't read %d bytes from offset %d from cluster file %s\nResource ID: %d (%08X)\n", size, resOffset(id), _prj.clu[(id >> 24) - 1].label, id, id); + } } else _memMan->setCondition(memHandle, MEM_DONT_FREE); |