diff options
author | Trial97 <alexandru.tripon97@gmail.com> | 2023-06-23 11:42:28 +0300 |
---|---|---|
committer | Trial97 <alexandru.tripon97@gmail.com> | 2023-06-23 11:42:28 +0300 |
commit | 6613deca0fa3a49086e89bc05e047f05909f8c0c (patch) | |
tree | ff8407e02d9c3d59a02436a2ad083f241d87cc2e /launcher/minecraft/mod/tasks/LocalResourcePackParseTask.h | |
parent | 718aca3d066fc24c03b7ac6d625d68829fcaa427 (diff) | |
parent | 8df5ab8aa7ec32ee3c44e2b57dc9c9f04e093d9d (diff) | |
download | PrismLauncher-6613deca0fa3a49086e89bc05e047f05909f8c0c.tar.gz PrismLauncher-6613deca0fa3a49086e89bc05e047f05909f8c0c.tar.bz2 PrismLauncher-6613deca0fa3a49086e89bc05e047f05909f8c0c.zip |
Merge branch 'develop' of https://github.com/PrismLauncher/PrismLauncher into catpacks
Diffstat (limited to 'launcher/minecraft/mod/tasks/LocalResourcePackParseTask.h')
-rw-r--r-- | launcher/minecraft/mod/tasks/LocalResourcePackParseTask.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/launcher/minecraft/mod/tasks/LocalResourcePackParseTask.h b/launcher/minecraft/mod/tasks/LocalResourcePackParseTask.h index d0c24c2b..58d90b3b 100644 --- a/launcher/minecraft/mod/tasks/LocalResourcePackParseTask.h +++ b/launcher/minecraft/mod/tasks/LocalResourcePackParseTask.h @@ -35,7 +35,10 @@ bool processZIP(ResourcePack& pack, ProcessingLevel level = ProcessingLevel::Ful bool processFolder(ResourcePack& pack, ProcessingLevel level = ProcessingLevel::Full); bool processMCMeta(ResourcePack& pack, QByteArray&& raw_data); -bool processPackPNG(ResourcePack& pack, QByteArray&& raw_data); +bool processPackPNG(const ResourcePack& pack, QByteArray&& raw_data); + +/// processes ONLY the pack.png (rest of the pack may be invalid) +bool processPackPNG(const ResourcePack& pack); /** Checks whether a file is valid as a resource pack or not. */ bool validate(QFileInfo file); |