diff options
| author | Brian Munro <brian.alexander.munro@gmail.com> | 2018-05-08 12:47:54 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-05-08 12:47:54 +0200 |
| commit | 0da6af17b2d6a6965849aa0effd5a1a876f447c4 (patch) | |
| tree | 306056296c7a35504e85825ec6965b5193c74b24 /src/organizerproxy.cpp | |
| parent | bc75009169ecbf378fa90891dc8183a8cb3ef499 (diff) | |
| parent | 44111d12c181ff062d7936480fdc380e33232e0e (diff) | |
Merge pull request #336 from Modorganizer2/Develop
Release 2.1.3
Diffstat (limited to 'src/organizerproxy.cpp')
| -rw-r--r-- | src/organizerproxy.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/organizerproxy.cpp b/src/organizerproxy.cpp index cf2e29e3..8e0bc95b 100644 --- a/src/organizerproxy.cpp +++ b/src/organizerproxy.cpp @@ -2,6 +2,7 @@ #include "appconfig.h"
#include "organizercore.h"
+#include "plugincontainer.h"
#include <QApplication>
@@ -9,15 +10,16 @@ using namespace MOBase; using namespace MOShared;
-OrganizerProxy::OrganizerProxy(OrganizerCore *organizer, const QString &pluginName)
+OrganizerProxy::OrganizerProxy(OrganizerCore *organizer, PluginContainer *pluginContainer, const QString &pluginName)
: m_Proxied(organizer)
+ , m_PluginContainer(pluginContainer)
, m_PluginName(pluginName)
{
}
IModRepositoryBridge *OrganizerProxy::createNexusBridge() const
{
- return new NexusBridge(m_PluginName);
+ return new NexusBridge(m_PluginContainer, m_PluginName);
}
QString OrganizerProxy::profileName() const
@@ -58,6 +60,11 @@ IModInterface *OrganizerProxy::getMod(const QString &name) const return m_Proxied->getMod(name);
}
+IPluginGame *OrganizerProxy::getGame(const QString &gameName) const
+{
+ return m_Proxied->getGame(gameName);
+}
+
IModInterface *OrganizerProxy::createMod(MOBase::GuessedValue<QString> &name)
{
return m_Proxied->createMod(name);
|
