aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2006-10-13 08:51:26 +0000
committerEugene Sandulenko2006-10-13 08:51:26 +0000
commit053bbaf9bbb165a89bc800583f8b7066d97e2c4e (patch)
tree52d7021038abaa992e8b122a43d390f4dbcaf0cb /engines
parent1564b76e1e79e86010b1828d58dcb7626ecbc145 (diff)
downloadscummvm-rg350-053bbaf9bbb165a89bc800583f8b7066d97e2c4e.tar.gz
scummvm-rg350-053bbaf9bbb165a89bc800583f8b7066d97e2c4e.tar.bz2
scummvm-rg350-053bbaf9bbb165a89bc800583f8b7066d97e2c4e.zip
Reenable incorrectly compressed files warning
svn-id: r24290
Diffstat (limited to 'engines')
-rw-r--r--engines/scumm/smush/chunk.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/engines/scumm/smush/chunk.cpp b/engines/scumm/smush/chunk.cpp
index d698baa844..6395f67726 100644
--- a/engines/scumm/smush/chunk.cpp
+++ b/engines/scumm/smush/chunk.cpp
@@ -84,10 +84,14 @@ bool BaseChunk::seek(int32 delta, seek_type dir) {
}
if (_curPos > _size) {
-// FIXME: This is an evil hack, can't we do better?!
-// if (g_scumm->_insaneRunning) {
-// warning("Looks like you compressed file %s in wrong way. It has FLU index which was not updated", _name.c_str());
-// }
+ // It may happen that user misused our SAN compression tool
+ // and ignored FLU index for videos which are used by INSANE.
+ // This will lead to incorrect seek requests
+ //
+ // Check if INSANE is running and give more feedback in this case
+ if (g_scumm->_insaneRunning) {
+ warning("Looks like you compressed file %s in wrong way. It has FLU index which was not updated", _name.c_str());
+ }
error("invalid seek request : %d > %d (delta == %d)", _curPos, _size, delta);
}
return true;