diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2020-08-17 05:06:26 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2020-11-03 11:39:08 -0500 |
| commit | 4c5e3da2334a1d0c474148be8881b46d6ca6d3fa (patch) | |
| tree | 188be5f54644cc5e432f957fe5bf406d372e5e80 /src/modlist.h | |
| parent | ee53312652af10fbddb5d1d16db6212bca2b9665 (diff) | |
moved nexus api stuff to GlobalSettings
pass a pointer to Settings around for things that can be called without settings, when creating the first instance
added dummy plugin list, mod list and iorganizer to initialize plugins without an instance
moved PluginContainer into the core filter, had nothing to do with the plugins list
NexusInterface is now created manually instead of being a static singleton because it needs to know if the settings are available
Diffstat (limited to 'src/modlist.h')
| -rw-r--r-- | src/modlist.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/modlist.h b/src/modlist.h index 385ca04c..3ab486c9 100644 --- a/src/modlist.h +++ b/src/modlist.h @@ -397,5 +397,19 @@ private: };
+
+class DummyModList : public MOBase::IModList
+{
+public:
+ QString displayName(const QString &internalName) const override;
+ QStringList allMods() const override;
+ ModStates state(const QString &name) const override;
+ bool setActive(const QString &name, bool active) override;
+ int priority(const QString &name) const override;
+ bool setPriority(const QString &name, int newPriority) override;
+ bool onModStateChanged(const std::function<void(const QString&, ModStates)> &func) override;
+ bool onModMoved(const std::function<void (const QString &, int, int)> &func) override;
+};
+
#endif // MODLIST_H
|
