From 717b5ac389ea15350d32f813a3f03d908de0ab06 Mon Sep 17 00:00:00 2001 From: Jonathan Feenstra <26406078+JonathanFeenstra@users.noreply.github.com> Date: Sun, 11 Jan 2026 12:36:07 +0100 Subject: Add instanceName and profiles methods to plugin API (#2321) --- src/organizerproxy.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'src/organizerproxy.cpp') diff --git a/src/organizerproxy.cpp b/src/organizerproxy.cpp index 22a8a023..72247b54 100644 --- a/src/organizerproxy.cpp +++ b/src/organizerproxy.cpp @@ -3,6 +3,7 @@ #include "downloadmanagerproxy.h" #include "gamefeaturesproxy.h" #include "glob_matching.h" +#include "instancemanager.h" #include "modlistproxy.h" #include "organizercore.h" #include "plugincontainer.h" @@ -15,6 +16,8 @@ #include #include +#include + using namespace MOBase; using namespace MOShared; @@ -84,6 +87,11 @@ IModRepositoryBridge* OrganizerProxy::createNexusBridge() const return new NexusBridge(m_PluginContainer, m_Plugin->name()); } +QString OrganizerProxy::instanceName() const +{ + return InstanceManager::singleton().currentInstance()->displayName(); +} + QString OrganizerProxy::profileName() const { return m_Proxied->profileName(); @@ -367,6 +375,17 @@ MOBase::IProfile* OrganizerProxy::profile() const return m_Proxied->currentProfile(); } +QStringList OrganizerProxy::profileNames() const +{ + return m_Proxied->profileNames(); +} + +std::shared_ptr +OrganizerProxy::getProfile(const QString& name) const +{ + return m_Proxied->getProfile(name); +} + MOBase::IPluginGame const* OrganizerProxy::managedGame() const { return m_Proxied->managedGame(); -- cgit v1.3.1