diff options
author | flow <flowlnlnln@gmail.com> | 2022-08-28 22:33:44 -0300 |
---|---|---|
committer | flow <flowlnlnln@gmail.com> | 2022-09-03 13:37:21 -0300 |
commit | f21ae66265d5e3251bd996df1fc7ed7f52ec95b0 (patch) | |
tree | 2969b2c5911001f467d0f6950c35a0d5f515af07 /launcher/minecraft/mod/ModFolderModel.h | |
parent | afa1a5e93228350ea5689b39655046b49a0133a5 (diff) | |
download | PrismLauncher-f21ae66265d5e3251bd996df1fc7ed7f52ec95b0.tar.gz PrismLauncher-f21ae66265d5e3251bd996df1fc7ed7f52ec95b0.tar.bz2 PrismLauncher-f21ae66265d5e3251bd996df1fc7ed7f52ec95b0.zip |
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 <flowlnlnln@gmail.com>
Diffstat (limited to 'launcher/minecraft/mod/ModFolderModel.h')
-rw-r--r-- | launcher/minecraft/mod/ModFolderModel.h | 2 |
1 files changed, 1 insertions, 1 deletions
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); |