X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Pico%2FCart.c;h=07ced8c5514b917e1196a31e8d7c2e85d9631474;hb=4696954094ca11200b8b08e8a9bfb231cf21fb86;hp=a865033205af53adb4419bafd115506b98a6021c;hpb=7336a99a49268970e0df89d15210b98dd7798f1e;p=picodrive.git diff --git a/Pico/Cart.c b/Pico/Cart.c index a865033..07ced8c 100644 --- a/Pico/Cart.c +++ b/Pico/Cart.c @@ -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