diff options
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(); |
