diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2022-06-12 19:17:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-12 19:17:08 +0200 |
commit | d08815bbc161a3bfbca06a6c0c5c7aeb5f026173 (patch) | |
tree | eb924e183387386a12a57e425491ae9ce73f0428 /launcher/minecraft/mod/Mod.h | |
parent | 794022d399294c2ac377e4e62b65758117e5bdac (diff) | |
parent | 4448418b63715bc64acbb19bd75bedf725cb4165 (diff) | |
download | PrismLauncher-d08815bbc161a3bfbca06a6c0c5c7aeb5f026173.tar.gz PrismLauncher-d08815bbc161a3bfbca06a6c0c5c7aeb5f026173.tar.bz2 PrismLauncher-d08815bbc161a3bfbca06a6c0c5c7aeb5f026173.zip |
Merge pull request #759 from flowln/mod_perma_3
Diffstat (limited to 'launcher/minecraft/mod/Mod.h')
-rw-r--r-- | launcher/minecraft/mod/Mod.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/launcher/minecraft/mod/Mod.h b/launcher/minecraft/mod/Mod.h index 96d471b4..5f9c4684 100644 --- a/launcher/minecraft/mod/Mod.h +++ b/launcher/minecraft/mod/Mod.h @@ -73,8 +73,8 @@ public: auto authors() const -> QStringList; auto status() const -> ModStatus; - auto metadata() const -> const std::shared_ptr<Metadata::ModStruct> { return details().metadata; }; - auto metadata() -> std::shared_ptr<Metadata::ModStruct> { return m_localDetails->metadata; }; + auto metadata() -> std::shared_ptr<Metadata::ModStruct>; + auto metadata() const -> const std::shared_ptr<Metadata::ModStruct>; void setStatus(ModStatus status); void setMetadata(Metadata::ModStruct* metadata); @@ -109,6 +109,10 @@ protected: /* If the mod has metadata, this will be filled in the constructor, and passed to * the ModDetails when calling finishResolvingWithDetails */ std::shared_ptr<Metadata::ModStruct> m_temp_metadata; + + /* Set the mod status while it doesn't have local details just yet */ + ModStatus m_temp_status = ModStatus::NotInstalled; + std::shared_ptr<ModDetails> m_localDetails; bool m_enabled = true; |