From 4da0bffeee05c4589ae4d0addc7c695e31669990 Mon Sep 17 00:00:00 2001 From: Jonathan Feenstra <26406078+JonathanFeenstra@users.noreply.github.com> Date: Sun, 8 Feb 2026 10:08:10 +0100 Subject: Add instance manager to plugin API (#2335) --- src/organizerproxy.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/organizerproxy.cpp') 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(&InstanceManager::singleton())), m_DownloadManagerProxy( std::make_unique(this, organizer->downloadManager())), m_ModListProxy(std::make_unique(this, organizer->modList())), @@ -353,6 +356,11 @@ std::shared_ptr 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(); -- cgit v1.3.1