diff options
author | Rachel Powers <508861+Ryex@users.noreply.github.com> | 2022-12-10 00:52:50 -0700 |
---|---|---|
committer | Rachel Powers <508861+Ryex@users.noreply.github.com> | 2022-12-24 09:42:02 -0700 |
commit | 878614ff68163bbc95cbfc35611765f21a83bfed (patch) | |
tree | 93e9994abeee5be25cde63e8d2eb6f353d7da868 /launcher/minecraft/mod/Mod.h | |
parent | 25e23e50cadf8e72105ca70e347d65595d2d3f16 (diff) | |
download | PrismLauncher-878614ff68163bbc95cbfc35611765f21a83bfed.tar.gz PrismLauncher-878614ff68163bbc95cbfc35611765f21a83bfed.tar.bz2 PrismLauncher-878614ff68163bbc95cbfc35611765f21a83bfed.zip |
feat: add a `ModUtils::validate`
moves the reading of mod files into `ModUtils` namespace
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
Diffstat (limited to 'launcher/minecraft/mod/Mod.h')
-rw-r--r-- | launcher/minecraft/mod/Mod.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/launcher/minecraft/mod/Mod.h b/launcher/minecraft/mod/Mod.h index f336bec4..b6d264fe 100644 --- a/launcher/minecraft/mod/Mod.h +++ b/launcher/minecraft/mod/Mod.h @@ -68,6 +68,9 @@ public: void setStatus(ModStatus status); void setMetadata(std::shared_ptr<Metadata::ModStruct>&& metadata); void setMetadata(const Metadata::ModStruct& metadata) { setMetadata(std::make_shared<Metadata::ModStruct>(metadata)); } + void setDetails(const ModDetails& details); + + bool valid() const override; [[nodiscard]] auto compare(Resource const& other, SortType type) const -> std::pair<int, bool> override; [[nodiscard]] bool applyFilter(QRegularExpression filter) const override; |