aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/mod/tasks/LocalResourcePackParseTask.h
diff options
context:
space:
mode:
authorTheKodeToad <TheKodeToad@proton.me>2023-07-01 13:05:55 +0100
committerGitHub <noreply@github.com>2023-07-01 13:05:55 +0100
commit7138425c8581e19d36ee62e1193a5b7184eb0089 (patch)
treed29efcad3353603c6ac1eb64708a92e616c00ecc /launcher/minecraft/mod/tasks/LocalResourcePackParseTask.h
parent05d2c1f0b06519eba9cc5ad22848106b49f9bd15 (diff)
parentc523765c197cf63d6830d205f1554cd73e38109e (diff)
downloadPrismLauncher-7138425c8581e19d36ee62e1193a5b7184eb0089.tar.gz
PrismLauncher-7138425c8581e19d36ee62e1193a5b7184eb0089.tar.bz2
PrismLauncher-7138425c8581e19d36ee62e1193a5b7184eb0089.zip
Merge branch 'develop' into better-component-installation
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
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);