aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/mod/tasks/LocalResourcePackParseTask.h
diff options
context:
space:
mode:
authorTrial97 <alexandru.tripon97@gmail.com>2023-06-23 17:29:58 +0300
committerTrial97 <alexandru.tripon97@gmail.com>2023-06-23 17:29:58 +0300
commit90df092174c86bf3328146f4da7908ecbcfbc0b2 (patch)
treea58d51624febc5ceef1724ca204930e20f852fa8 /launcher/minecraft/mod/tasks/LocalResourcePackParseTask.h
parent85495c794de2b7c9ae64bbf43156b3e4e6ecfed0 (diff)
parent8df5ab8aa7ec32ee3c44e2b57dc9c9f04e093d9d (diff)
downloadPrismLauncher-90df092174c86bf3328146f4da7908ecbcfbc0b2.tar.gz
PrismLauncher-90df092174c86bf3328146f4da7908ecbcfbc0b2.tar.bz2
PrismLauncher-90df092174c86bf3328146f4da7908ecbcfbc0b2.zip
Merge branch 'develop' of https://github.com/PrismLauncher/PrismLauncher into curse
Diffstat (limited to 'launcher/minecraft/mod/tasks/LocalResourcePackParseTask.h')
-rw-r--r--launcher/minecraft/mod/tasks/LocalResourcePackParseTask.h5
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);