int main(int argc, char*argv[]) { pgeZip* thezip = pgeZipOpen("test.zip"); pgeZipExtract(thezip, NULL); pgeZipClose(thezip); pgeExit(); return 0; }
void TextureHelper::SetTextureZipName(std::string name) { defaultZip = name; texturePatch = defaulPatch + defaultZip; if(theZip != NULL) { pgeZipClose(theZip); } theZip = pgeZipOpen(texturePatch.c_str()); //clean old textures CleanAllPackImages(); }