コード例 #1
0
ファイル: zipextract.c プロジェクト: kimonline/PGE
int main(int argc, char*argv[])
{
    pgeZip* thezip = pgeZipOpen("test.zip");

    pgeZipExtract(thezip, NULL);

    pgeZipClose(thezip);

    pgeExit();

    return 0;
}
コード例 #2
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();
}