summaryrefslogtreecommitdiff
path: root/src/profile.h
diff options
context:
space:
mode:
authorLostDragonist <lost.dragonist@gmail.com>2018-10-31 20:00:20 -0500
committerLostDragonist <lost.dragonist@gmail.com>2018-11-01 06:40:55 -0500
commit122744454c9befc06b582a8f0feb03bfbb85aa71 (patch)
treeebd98ab890695fb6c80ed5a50eefabc4e27b62cc /src/profile.h
parent5de173ba1ae9531aaca0c0f022a2b0dae1c09250 (diff)
Improve changing mod and plugin priorities
Diffstat (limited to 'src/profile.h')
-rw-r--r--src/profile.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/profile.h b/src/profile.h
index 1fcad046..9ddd5b89 100644
--- a/src/profile.h
+++ b/src/profile.h
@@ -247,7 +247,7 @@ public:
* @return the index of the mod
* @throw std::exception an exception is thrown if there is no mod with the specified priority
**/
- unsigned int modIndexByPriority(unsigned int priority) const;
+ unsigned int modIndexByPriority(int priority) const;
/**
* @brief enable or disable a mod
@@ -294,6 +294,8 @@ public:
const QVariant &value);
void removeSetting(const QString &section, const QString &name);
+ int getPriorityMinimum() const;
+
signals:
/**
@@ -347,7 +349,7 @@ private:
mutable QByteArray m_LastModlistHash;
std::vector<ModStatus> m_ModStatus;
- std::vector<unsigned int> m_ModIndexByPriority;
+ std::map<int, unsigned int> m_ModIndexByPriority;
unsigned int m_NumRegularMods;
MOBase::DelayedFileWriter m_ModListWriter;