X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Pico%2FCart.c;h=a84708865fe108aabbad5d62e99999e82bdfaa6e;hb=1c88b865ceb1e1801bcf20010088fd62cdf2cc06;hp=a865033205af53adb4419bafd115506b98a6021c;hpb=7336a99a49268970e0df89d15210b98dd7798f1e;p=picodrive.git diff --git a/Pico/Cart.c b/Pico/Cart.c index a865033..a847088 100644 --- a/Pico/Cart.c +++ b/Pico/Cart.c @@ -1,7 +1,7 @@ // This is part of Pico Library // (c) Copyright 2004 Dave, All rights reserved. -// (c) Copyright 2006 notaz, All rights reserved. +// (c) Copyright 2006-2007, Grazvydas "notaz" Ignotas // Free for non-commercial use. // For commercial use, separate licencing terms must be obtained. @@ -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