diff options
Diffstat (limited to 'engines/scumm/smush')
-rw-r--r-- | engines/scumm/smush/chunk.cpp | 12 |
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; |