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/pluginlist.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/pluginlist.h')
| -rw-r--r-- | src/pluginlist.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/pluginlist.h b/src/pluginlist.h index 0b49b86f..bfadaf4f 100644 --- a/src/pluginlist.h +++ b/src/pluginlist.h @@ -410,6 +410,24 @@ private: bool hasInfo(const ESPInfo& esp, const AdditionalInfo* info) const;
};
+
+class DummyPluginList : public MOBase::IPluginList
+{
+public:
+ QStringList pluginNames() const override;
+ PluginStates state(const QString &name) const override;
+ void setState(const QString &name, PluginStates state) override;
+ int priority(const QString &name) const override;
+ int loadOrder(const QString &name) const override;
+ void setLoadOrder(const QStringList &pluginList) override;
+ bool isMaster(const QString &name) const override;
+ QStringList masters(const QString &name) const override;
+ QString origin(const QString &name) const override;
+ bool onRefreshed(const std::function<void()> &callback) override;
+ bool onPluginMoved(const std::function<void (const QString &, int, int)> &func) override;
+ bool onPluginStateChanged(const std::function<void (const QString &, PluginStates)> &func) override;
+};
+
#pragma warning(pop)
#endif // PLUGINLIST_H
|
