aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/mod/tasks/LocalTexturePackParseTask.h
diff options
context:
space:
mode:
authorRachel Powers <508861+Ryex@users.noreply.github.com>2022-12-09 20:26:05 -0700
committerRachel Powers <508861+Ryex@users.noreply.github.com>2022-12-24 09:42:02 -0700
commit64c51a70a3aa110131fb6ad0cabc07ccfdcbb1c0 (patch)
tree81f97511a3bc54ba9bca3ec2639fd612bf641c9b /launcher/minecraft/mod/tasks/LocalTexturePackParseTask.h
parentdd3848d7b161e415c34c3c1c393985b644a88f1c (diff)
downloadPrismLauncher-64c51a70a3aa110131fb6ad0cabc07ccfdcbb1c0.tar.gz
PrismLauncher-64c51a70a3aa110131fb6ad0cabc07ccfdcbb1c0.tar.bz2
PrismLauncher-64c51a70a3aa110131fb6ad0cabc07ccfdcbb1c0.zip
feat: add initial support for parseing datapacks
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
Diffstat (limited to 'launcher/minecraft/mod/tasks/LocalTexturePackParseTask.h')
-rw-r--r--launcher/minecraft/mod/tasks/LocalTexturePackParseTask.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/launcher/minecraft/mod/tasks/LocalTexturePackParseTask.h b/launcher/minecraft/mod/tasks/LocalTexturePackParseTask.h
index 9f7aab75..1589f8cb 100644
--- a/launcher/minecraft/mod/tasks/LocalTexturePackParseTask.h
+++ b/launcher/minecraft/mod/tasks/LocalTexturePackParseTask.h
@@ -32,11 +32,11 @@ enum class ProcessingLevel { Full, BasicInfoOnly };
bool process(TexturePack& pack, ProcessingLevel level = ProcessingLevel::Full);
-void processZIP(TexturePack& pack, ProcessingLevel level = ProcessingLevel::Full);
-void processFolder(TexturePack& pack, ProcessingLevel level = ProcessingLevel::Full);
+bool processZIP(TexturePack& pack, ProcessingLevel level = ProcessingLevel::Full);
+bool processFolder(TexturePack& pack, ProcessingLevel level = ProcessingLevel::Full);
-void processPackTXT(TexturePack& pack, QByteArray&& raw_data);
-void processPackPNG(TexturePack& pack, QByteArray&& raw_data);
+bool processPackTXT(TexturePack& pack, QByteArray&& raw_data);
+bool processPackPNG(TexturePack& pack, QByteArray&& raw_data);
/** Checks whether a file is valid as a texture pack or not. */
bool validate(QFileInfo file);