diff options
| author | Tannin <devnull@localhost> | 2014-06-08 15:10:08 +0200 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2014-06-08 15:10:08 +0200 |
| commit | 0feb4b702d8a9eb1465c79c49ada5de01b67083d (patch) | |
| tree | 378bba0b46c750f02f3f953e9f4076462a2633bf /src/modinfo.h | |
| parent | 5a4b6e70fd815c9052ff71a4244bdeb707e92ba1 (diff) | |
- loot client now only updates the masterlist once per MO session
- new event to notify plugins of changed mod priority
- overwrite now shows up in the "checked" category instead of "unchecked"
- display of "foreign" mods can now be limited to only official content
- bugfix: bsa extraction dialog showed up even if the plugin was disabled
- bugfix: after detection of foreign mods the priority of the overwrite folder could get messed up
- bugfix: when displaying only the context menu for the mod list as a whole, the menu didn't disappear
- bugfix: MO crashed when trying to download via the integrated browser
Diffstat (limited to 'src/modinfo.h')
| -rw-r--r-- | src/modinfo.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/modinfo.h b/src/modinfo.h index 21267068..ef647eab 100644 --- a/src/modinfo.h +++ b/src/modinfo.h @@ -87,7 +87,7 @@ public: /** * @brief read the mod directory and Mod ModInfo objects for all subdirectories **/ - static void updateFromDisc(const QString &modDirectory, MOShared::DirectoryEntry **directoryStructure); + static void updateFromDisc(const QString &modDirectory, MOShared::DirectoryEntry **directoryStructure, bool displayForeign); static void clear() { s_Collection.clear(); s_ModsByName.clear(); s_ModsByModID.clear(); } @@ -369,6 +369,13 @@ public: virtual std::vector<EFlag> getFlags() const = 0; /** + * @brief test if the specified flag is set for this mod + * @param flag the flag to test + * @return true if the flag is set, false otherwise + */ + bool hasFlag(EFlag flag) const; + + /** * @return an indicator if and how this mod should be highlighted by the UI */ virtual int getHighlight() const { return HIGHLIGHT_NONE; } @@ -911,6 +918,7 @@ public: virtual void setNeverEndorse() {} virtual bool remove() { return false; } virtual void endorse(bool) {} + virtual bool alwaysEnabled() const { return true; } virtual bool isEmpty() const; virtual QString name() const { return "Overwrite"; } virtual QString notes() const { return ""; } |
