diff options
| author | Jonathan Feenstra <26406078+JonathanFeenstra@users.noreply.github.com> | 2026-02-08 10:08:10 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-08 10:08:10 +0100 |
| commit | 4da0bffeee05c4589ae4d0addc7c695e31669990 (patch) | |
| tree | 9d6c793899935f3687d5df64f4daafcec4ebd36c /src/organizerproxy.cpp | |
| parent | a394f02e97ad0bf328fa735cbdbfbe026c03655d (diff) | |
Add instance manager to plugin API (#2335)
Diffstat (limited to 'src/organizerproxy.cpp')
| -rw-r--r-- | src/organizerproxy.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/organizerproxy.cpp b/src/organizerproxy.cpp index 973af3d1..90ab900a 100644 --- a/src/organizerproxy.cpp +++ b/src/organizerproxy.cpp @@ -5,6 +5,7 @@ #include "gamefeaturesproxy.h" #include "glob_matching.h" #include "instancemanager.h" +#include "instancemanagerproxy.h" #include "modlistproxy.h" #include "organizercore.h" #include "plugincontainer.h" @@ -26,6 +27,8 @@ OrganizerProxy::OrganizerProxy(OrganizerCore* organizer, PluginContainer* pluginContainer, MOBase::IPlugin* plugin) : m_Proxied(organizer), m_PluginContainer(pluginContainer), m_Plugin(plugin), + m_InstanceManagerProxy( + std::make_unique<InstanceManagerProxy>(&InstanceManager::singleton())), m_DownloadManagerProxy( std::make_unique<DownloadManagerProxy>(this, organizer->downloadManager())), m_ModListProxy(std::make_unique<ModListProxy>(this, organizer->modList())), @@ -353,6 +356,11 @@ std::shared_ptr<const MOBase::IFileTree> OrganizerProxy::virtualFileTree() const return m_Proxied->m_VirtualFileTree.value(); } +MOBase::IInstanceManager* OrganizerProxy::instanceManager() const +{ + return m_InstanceManagerProxy.get(); +} + MOBase::IDownloadManager* OrganizerProxy::downloadManager() const { return m_DownloadManagerProxy.get(); |
