summaryrefslogtreecommitdiff
path: root/src/modinfo.h
diff options
context:
space:
mode:
authorMikaƫl Capelle <capelle.mikael@gmail.com>2021-01-29 19:29:21 +0100
committerGitHub <noreply@github.com>2021-01-29 19:29:21 +0100
commitf53e5406d4292f484257178ec5733f6ceb116673 (patch)
treef08dfdba6a38986a93612a5aa0166f3008110ad7 /src/modinfo.h
parent8606bf70c76252e20f888264bfbdedde0f1c8754 (diff)
parent48fae18ac6baced388b1fa7cee6c18e6aa8dbab3 (diff)
Merge pull request #1378 from Holt59/fix-priority-management
Increase robustness of mods priority in profile.
Diffstat (limited to 'src/modinfo.h')
-rw-r--r--src/modinfo.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/modinfo.h b/src/modinfo.h
index c9b74a66..f93296d2 100644
--- a/src/modinfo.h
+++ b/src/modinfo.h
@@ -602,17 +602,15 @@ public: // Methods after this do not come from IModInterface:
*/
virtual void ignoreUpdate(bool ignore) = 0;
- /**
- * @return the fixed priority of mods of this type or INT_MIN if the priority of mods
- * needs to be user-modifiable. Can be < 0 to force a priority below user-modifable mods
- * or INT_MAX to force priority above all user-modifiables.
- */
- virtual int getFixedPriority() const = 0;
+ // check if the priority of this mod is not user-modifiable (i.e.
+ // computed by MO2 automatically)
+ //
+ bool hasAutomaticPriority() const { return isBackup() || isOverwrite(); }
- /**
- * @return true if the mod is always enabled.
- */
+ // check if this mod should always be enabled or disabled
+ //
virtual bool alwaysEnabled() const { return false; }
+ virtual bool alwaysDisabled() const { return false; }
/**
* @return true if the mod can be updated.