From f21ae66265d5e3251bd996df1fc7ed7f52ec95b0 Mon Sep 17 00:00:00 2001 From: flow Date: Sun, 28 Aug 2022 22:33:44 -0300 Subject: feat: add basic resource pack parsing of pack.mcmeta This parses the pack format ID and the description from the local file, from both a ZIP and a folder, and hooks it into the model. Signed-off-by: flow --- launcher/minecraft/mod/ModFolderModel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'launcher/minecraft/mod/ModFolderModel.h') diff --git a/launcher/minecraft/mod/ModFolderModel.h b/launcher/minecraft/mod/ModFolderModel.h index c33195ed..93980319 100644 --- a/launcher/minecraft/mod/ModFolderModel.h +++ b/launcher/minecraft/mod/ModFolderModel.h @@ -82,7 +82,7 @@ public: int columnCount(const QModelIndex &parent) const override; [[nodiscard]] Task* createUpdateTask() override; - [[nodiscard]] Task* createParseTask(Resource const&) override; + [[nodiscard]] Task* createParseTask(Resource&) override; bool installMod(QString file_path) { return ResourceFolderModel::installResource(file_path); } bool uninstallMod(const QString& filename, bool preserve_metadata = false); -- cgit