diff options
| author | Mikaël Capelle <capelle.mikael@gmail.com> | 2020-12-28 13:44:26 +0100 |
|---|---|---|
| committer | Mikaël Capelle <capelle.mikael@gmail.com> | 2021-01-02 15:38:15 +0100 |
| commit | addb38645b41507ae8e0536bb83d3b99d365f664 (patch) | |
| tree | b38a5f1d67dddd02c7fcebfc1dde37e427b4206c /src/modinfo.h | |
| parent | cc5f0c8555fbbcc4b6d0dc29a42b8c7869df1859 (diff) | |
Clean drag&drop of URLs and mods/archives.
Diffstat (limited to 'src/modinfo.h')
| -rw-r--r-- | src/modinfo.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/modinfo.h b/src/modinfo.h index d04f6657..3981be18 100644 --- a/src/modinfo.h +++ b/src/modinfo.h @@ -178,6 +178,11 @@ public: // Static functions: static unsigned int getIndex(const QString &name); /** + * @brief Retrieve the overwrite mod. + */ + static ModInfo::Ptr getOverwrite() { return s_Overwrite; } + + /** * @brief Find the first mod that fulfills the filter function (after no particular order). * * @param filter A function to filter mods by. Should return true for a match. @@ -981,6 +986,7 @@ protected: protected: static std::vector<ModInfo::Ptr> s_Collection; + static ModInfo::Ptr s_Overwrite; static std::map<QString, unsigned int> s_ModsByName; int m_PrimaryCategory; @@ -992,7 +998,7 @@ protected: private: - static void createFromOverwrite(PluginContainer* pluginContainer, + static ModInfo::Ptr createFromOverwrite(PluginContainer* pluginContainer, const MOBase::IPluginGame* game, MOShared::DirectoryEntry** directoryStructure); |
