Data pack management

Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
TheKodeToad 2023-11-28 12:30:13 +00:00
parent 40cfa145ee
commit 284e536e81
No known key found for this signature in database
GPG key ID: 5E39D70B4C93C38E
29 changed files with 943 additions and 15 deletions

View file

@ -38,6 +38,10 @@ bool processZIP(DataPack& pack, ProcessingLevel level = ProcessingLevel::Full);
bool processFolder(DataPack& pack, ProcessingLevel level = ProcessingLevel::Full);
bool processMCMeta(DataPack& pack, QByteArray&& raw_data);
bool processPackPNG(const DataPack& pack, QByteArray&& raw_data);
/// processes ONLY the pack.png (rest of the pack may be invalid)
bool processPackPNG(const DataPack& pack);
/** Checks whether a file is valid as a data pack or not. */
bool validate(QFileInfo file);