diff --git a/engines/tinsel/handle.cpp b/engines/tinsel/handle.cpp index 117bf46718c..2f8e5775afb 100644 --- a/engines/tinsel/handle.cpp +++ b/engines/tinsel/handle.cpp @@ -274,14 +274,14 @@ void LoadFile(MEMHANDLE *pH) { Common::File f; char szFilename[sizeof(pH->szName) + 1]; - if (pH->filesize & fCompressed) { - error("Compression handling has been removed"); - } - // extract and zero terminate the filename memcpy(szFilename, pH->szName, sizeof(pH->szName)); szFilename[sizeof(pH->szName)] = 0; + if (pH->filesize & fCompressed) { + error("Compression handling has been removed - %s", szFilename); + } + if (f.open(szFilename)) { // read the data int bytes; diff --git a/engines/tinsel/strres.cpp b/engines/tinsel/strres.cpp index 32aefd008a5..e31e3c2a228 100644 --- a/engines/tinsel/strres.cpp +++ b/engines/tinsel/strres.cpp @@ -137,8 +137,9 @@ void ChangeLanguage(LANGUAGE newLang) { // close the file f.close(); - } else { // the file must be compressed - error("Compression handling has been removed"); + } else { + // the file must be compressed + error("Compression handling for text file has been removed"); } }