summaryrefslogtreecommitdiff
path: root/src/organizercore.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/organizercore.cpp')
-rw-r--r--src/organizercore.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/organizercore.cpp b/src/organizercore.cpp
index 7016f9a1..6a333a22 100644
--- a/src/organizercore.cpp
+++ b/src/organizercore.cpp
@@ -72,6 +72,7 @@
#include <tuple>
#include <utility>
+#include "organizerproxy.h"
using namespace MOShared;
using namespace MOBase;
@@ -96,7 +97,7 @@ OrganizerCore::OrganizerCore(Settings &settings)
, m_Settings(settings)
, m_Updater(&NexusInterface::instance())
, m_ModList(m_PluginContainer, this)
- , m_PluginList(this)
+ , m_PluginList(*this)
, m_DirectoryRefresher(new DirectoryRefresher(settings.refreshThreadCount()))
, m_DirectoryStructure(new DirectoryEntry(L"data", nullptr, 0))
, m_DownloadManager(&NexusInterface::instance(), this)
@@ -1529,6 +1530,11 @@ IPluginGame const *OrganizerCore::managedGame() const
return m_GamePlugin;
}
+IOrganizer const* OrganizerCore::managedGameOrganizer() const
+{
+ return m_PluginContainer->requirements(m_GamePlugin).m_Organizer;
+}
+
std::vector<QString> OrganizerCore::enabledArchives()
{
std::vector<QString> result;