1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Wip on zip serialize fixes

This commit is contained in:
AlexVinS
2015-08-13 03:29:13 +03:00
committed by AlexVinS
parent 27a29bd035
commit f2164abf1b
6 changed files with 32 additions and 9 deletions

View File

@@ -68,10 +68,10 @@ long ZCALLBACK CIOApi::seekFileProxy(voidpf opaque, voidpf stream, ZPOS64_T off
actualStream->skip(offset);//TODO: should we check actual skipped?
break;
case ZLIB_FILEFUNC_SEEK_END :
ret = -1;
actualStream->seek(actualStream->getSize() - offset);
break;
case ZLIB_FILEFUNC_SEEK_SET :
ret = actualStream->seek(offset);
actualStream->seek(offset);
break;
default: ret = -1;
}