summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/organizercore.h2
-rw-r--r--src/organizerproxy.cpp5
-rw-r--r--src/organizerproxy.h1
3 files changed, 7 insertions, 1 deletions
diff --git a/src/organizercore.h b/src/organizercore.h
index 5cfbaca4..f4cfabe7 100644
--- a/src/organizercore.h
+++ b/src/organizercore.h
@@ -89,7 +89,7 @@ public:
m_ExecutablesList = executablesList;
}
- Profile *currentProfile() { return m_CurrentProfile; }
+ Profile *currentProfile() const { return m_CurrentProfile; }
void setCurrentProfile(const QString &profileName);
std::vector<QString> enabledArchives();
diff --git a/src/organizerproxy.cpp b/src/organizerproxy.cpp
index ba07c154..b289b659 100644
--- a/src/organizerproxy.cpp
+++ b/src/organizerproxy.cpp
@@ -166,6 +166,11 @@ MOBase::IModList *OrganizerProxy::modList() const
return m_Proxied->modList();
}
+MOBase::IProfile *OrganizerProxy::profile() const
+{
+ return m_Proxied->currentProfile();
+}
+
MOBase::IPluginGame const *OrganizerProxy::managedGame() const
{
return m_Proxied->managedGame();
diff --git a/src/organizerproxy.h b/src/organizerproxy.h
index 62a35498..95543ba3 100644
--- a/src/organizerproxy.h
+++ b/src/organizerproxy.h
@@ -37,6 +37,7 @@ public:
virtual MOBase::IDownloadManager *downloadManager() const;
virtual MOBase::IPluginList *pluginList() const;
virtual MOBase::IModList *modList() const;
+ virtual MOBase::IProfile *profile() const override;
virtual HANDLE startApplication(const QString &executable, const QStringList &args = QStringList(), const QString &cwd = "", const QString &profile = "");
virtual bool waitForApplication(HANDLE handle, LPDWORD exitCode = nullptr) const;
virtual void refreshModList(bool saveChanges);