Simplify Rule

Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
TheKodeToad
2025-08-04 13:29:19 +01:00
parent 79b7e277f1
commit 3ba9483011
5 changed files with 73 additions and 119 deletions

View File

@@ -129,7 +129,7 @@ class Library {
void setHint(const QString& hint) { m_hint = hint; }
/// Set the load rules
void setRules(QList<std::shared_ptr<Rule>> rules) { m_rules = rules; }
void setRules(QList<Rule> rules) { m_rules = rules; }
/// Returns true if the library should be loaded (or extracted, in case of natives)
bool isActive(const RuntimeContext& runtimeContext) const;
@@ -203,7 +203,7 @@ class Library {
bool applyRules = false;
/// rules associated with the library
QList<std::shared_ptr<Rule>> m_rules;
QList<Rule> m_rules;
/// MOJANG: container with Mojang style download info
MojangLibraryDownloadInfo::Ptr m_mojangDownloads;