Class ZipFile

#include <Geode/cocos/support/zip_support/ZipUtils.h>
classZipFile{ ... }

Since v2.0.5

Zip file - reader helper class.

It will cache the file list of a particular zip file with positions inside an archive, so it would be much faster to read some particular files or to check their existance.

Examples0
Public static methods0
Public member functions6
boolisLoaded()const

Since geode v1.0.0

Custom function added for geode; returns if the zip file was succesfully decoded.

Return value
true if the zip was succesfully loaded, false otherwise.
boolunzipAllTo()
No description provided
boolsetFilter()

Since v2.0.5

Regenerate accessible file list based on a new filter string.

Parameters

filter

New filter string (first part of files names)
Return value
true whenever zip file is open successfully and it is possible to locate at least the first file, false otherwise
boolfileExists()const

Since v2.0.5

Check does a file exists or not in zip file

Parameters

fileName

File to be checked on existance
Return value
true whenever file exists, false otherwise
uchar*getFileData(,)

Since v2.0.5

Get resource file data from a zip file.

Parameters

fileName

File name

pSize

If the file read operation succeeds, it will be the data size, otherwise 0.
Return value
Upon success, a pointer to the data is returned, otherwise NULL.

⚠️ Recall: you are responsible for calling delete[] on any Non-NULL pointer returned.

std::vector<std::string>getAllFiles()const

Since geode v1.0.0

Custom function added for geode; returns all of the files in the zip that match the current filter.

Return value
Vector of filenames
Fields0
Protected member functions0
Protected fields0