loading msgs, bugfixes

git-svn-id: file:///home/notaz/opt/svn/PicoDrive@69 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
notaz 2007-03-16 20:59:11 +00:00
parent 7336a99a49
commit 66fdc0f0d5
13 changed files with 93 additions and 49 deletions

View file

@ -129,6 +129,11 @@ int pm_seek(pm_file *stream, long offset, int whence)
}
else if (stream->type == PMT_ZIP)
{
if (PicoMessage != NULL && offset > 6*1024*1024) {
long pos = gztell((gzFile) stream->param);
if (offset < pos || offset - pos > 6*1024*1024)
PicoMessage("Decompressing data...");
}
return gzseek((gzFile) stream->param, offset, whence);
}
else