summaryrefslogtreecommitdiff
path: root/src/organizercore.cpp
diff options
context:
space:
mode:
authorThomas Tanner <trtanner@btinternet.com>2015-11-25 08:22:40 +0000
committerThomas Tanner <trtanner@btinternet.com>2015-11-25 08:22:40 +0000
commit78b686b2bc507a5606bc7c673745b02346bc667a (patch)
treed161d6096289aed99cfb1bf79cce4c2404c202dd /src/organizercore.cpp
parent42a68689fe60ba29367dc0c8f65083d9bde93e1f (diff)
Removes all references to GameInfo::getGameDirectory apart from one during startup
Did some const correctness improvements Also may have fixed a potential crash as the Profile copy constructor didn't copy the m_GamePlugin membber
Diffstat (limited to 'src/organizercore.cpp')
-rw-r--r--src/organizercore.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/organizercore.cpp b/src/organizercore.cpp
index 24077923..c3e10d37 100644
--- a/src/organizercore.cpp
+++ b/src/organizercore.cpp
@@ -1011,7 +1011,7 @@ HANDLE OrganizerCore::startApplication(const QString &executable, const QStringL
binary = QFileInfo(executable);
if (binary.isRelative()) {
// relative path, should be relative to game directory
- binary = QFileInfo(QDir::fromNativeSeparators(ToQString(GameInfo::instance().getGameDirectory())) + "/" + executable);
+ binary = QFileInfo(managedGame()->gameDirectory().absoluteFilePath(executable));
}
if (cwd.length() == 0) {
currentDirectory = binary.absolutePath();