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/ResourceFolderModel.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/ResourceFolderModel.h')
-rw-r--r-- | launcher/minecraft/mod/ResourceFolderModel.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/launcher/minecraft/mod/ResourceFolderModel.h b/launcher/minecraft/mod/ResourceFolderModel.h index e27b5db6..a45d1cbd 100644 --- a/launcher/minecraft/mod/ResourceFolderModel.h +++ b/launcher/minecraft/mod/ResourceFolderModel.h @@ -145,7 +145,7 @@ class ResourceFolderModel : public QAbstractListModel { * This task should load and parse all heavy info needed by a resource, such as parsing a manifest. It gets executed * in the background, so it slowly updates the UI as tasks get done. */ - [[nodiscard]] virtual Task* createParseTask(Resource const&) { return nullptr; }; + [[nodiscard]] virtual Task* createParseTask(Resource&) { return nullptr; }; /** Standard implementation of the model update logic. * |