summaryrefslogtreecommitdiff
path: root/src/organizerproxy.cpp
diff options
context:
space:
mode:
authorMikaƫl Capelle <capelle.mikael@gmail.com>2024-06-09 12:18:17 +0200
committerGitHub <noreply@github.com>2024-06-09 12:18:17 +0200
commit88c386d74d7d94ec16d4d84ed674eb51e31647ac (patch)
treeadf0b2537f12d11d8df77f68a84926d15b063554 /src/organizerproxy.cpp
parentc43535f5bcf1043c3b9c00c77967267cf1acf60f (diff)
Refactoring of game features for better management. (#2043)
Diffstat (limited to 'src/organizerproxy.cpp')
-rw-r--r--src/organizerproxy.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/organizerproxy.cpp b/src/organizerproxy.cpp
index 0c1fb409..6edbdbab 100644
--- a/src/organizerproxy.cpp
+++ b/src/organizerproxy.cpp
@@ -1,6 +1,7 @@
#include "organizerproxy.h"
#include "downloadmanagerproxy.h"
+#include "gamefeaturesproxy.h"
#include "glob_matching.h"
#include "modlistproxy.h"
#include "organizercore.h"
@@ -25,7 +26,9 @@ OrganizerProxy::OrganizerProxy(OrganizerCore* organizer,
std::make_unique<DownloadManagerProxy>(this, organizer->downloadManager())),
m_ModListProxy(std::make_unique<ModListProxy>(this, organizer->modList())),
m_PluginListProxy(
- std::make_unique<PluginListProxy>(this, organizer->pluginList()))
+ std::make_unique<PluginListProxy>(this, organizer->pluginList())),
+ m_GameFeaturesProxy(
+ std::make_unique<GameFeaturesProxy>(this, pluginContainer->gameFeatures()))
{}
OrganizerProxy::~OrganizerProxy()
@@ -310,6 +313,11 @@ MOBase::IModList* OrganizerProxy::modList() const
return m_ModListProxy.get();
}
+MOBase::IGameFeatures* OrganizerProxy::gameFeatures() const
+{
+ return m_GameFeaturesProxy.get();
+}
+
MOBase::IProfile* OrganizerProxy::profile() const
{
return m_Proxied->currentProfile();