aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/mod/tasks/LocalTexturePackParseTask.h
diff options
context:
space:
mode:
authorRachel Powers <508861+Ryex@users.noreply.github.com>2023-06-22 13:26:47 -0700
committerGitHub <noreply@github.com>2023-06-22 13:26:47 -0700
commitf1ebec641aa1a8f8992d6230a42001ad18c24a74 (patch)
treef0f15391035280e5c36cf3ed6119fbb0dbc6bcf1 /launcher/minecraft/mod/tasks/LocalTexturePackParseTask.h
parentc5f16276d74283169eccf3f6a8845da910af0221 (diff)
parent470518eb3a3e0e43d67b7a15823c060755ad3284 (diff)
downloadPrismLauncher-f1ebec641aa1a8f8992d6230a42001ad18c24a74.tar.gz
PrismLauncher-f1ebec641aa1a8f8992d6230a42001ad18c24a74.tar.bz2
PrismLauncher-f1ebec641aa1a8f8992d6230a42001ad18c24a74.zip
Merge pull request #1058 from Ryex/feature/images-for-resource-page
Feature: image coumn for Mod, Resource Pack, and Texturepack pages
Diffstat (limited to 'launcher/minecraft/mod/tasks/LocalTexturePackParseTask.h')
-rw-r--r--launcher/minecraft/mod/tasks/LocalTexturePackParseTask.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/launcher/minecraft/mod/tasks/LocalTexturePackParseTask.h b/launcher/minecraft/mod/tasks/LocalTexturePackParseTask.h
index 1589f8cb..6b91565a 100644
--- a/launcher/minecraft/mod/tasks/LocalTexturePackParseTask.h
+++ b/launcher/minecraft/mod/tasks/LocalTexturePackParseTask.h
@@ -36,7 +36,10 @@ bool processZIP(TexturePack& pack, ProcessingLevel level = ProcessingLevel::Full
bool processFolder(TexturePack& pack, ProcessingLevel level = ProcessingLevel::Full);
bool processPackTXT(TexturePack& pack, QByteArray&& raw_data);
-bool processPackPNG(TexturePack& pack, QByteArray&& raw_data);
+bool processPackPNG(const TexturePack& pack, QByteArray&& raw_data);
+
+/// processes ONLY the pack.png (rest of the pack may be invalid)
+bool processPackPNG(const TexturePack& pack);
/** Checks whether a file is valid as a texture pack or not. */
bool validate(QFileInfo file);