summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Tanner <trtanner@btinternet.com>2015-12-26 15:49:19 +0000
committerThomas Tanner <trtanner@btinternet.com>2015-12-26 15:49:19 +0000
commit42417b6a010926c11beeefd7398c7e0089c09c7d (patch)
tree584ac89658a0bc58ec2239668d37d67c87786172 /src
parentf2b2ee1a11c79415020eeb56af2d9ac855c059d8 (diff)
Fix missing functions and also a bit of const correctness
Diffstat (limited to 'src')
-rw-r--r--src/organizerproxy.cpp5
-rw-r--r--src/organizerproxy.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/src/organizerproxy.cpp b/src/organizerproxy.cpp
index 474f0837..de1b6d03 100644
--- a/src/organizerproxy.cpp
+++ b/src/organizerproxy.cpp
@@ -167,6 +167,11 @@ MOBase::IModList *OrganizerProxy::modList() const
return m_Proxied->modList();
}
+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 2a0fc397..7ce8982e 100644
--- a/src/organizerproxy.h
+++ b/src/organizerproxy.h
@@ -38,6 +38,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);