diff options
| author | Tannin <devnull@localhost> | 2014-11-11 21:41:22 +0100 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2014-11-11 21:41:22 +0100 |
| commit | 7c1273b246117740dd17fb70ad712346421224d7 (patch) | |
| tree | 78c30b856144c42b8bdb28c7247e0f8f7b93060e /src/mainwindow.cpp | |
| parent | 53d1f3e00e8f2cfc8f2d715b4bbbf0309dcb8947 (diff) | |
some work on installer scripts
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 17743312..90ddcf81 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -5435,11 +5435,22 @@ HANDLE MainWindow::startApplication(const QString &executable, const QStringList QString steamAppID;
if (executable.contains('\\') || executable.contains('/')) {
// file path
+
binary = QFileInfo(executable);
if (binary.isRelative()) {
// relative path, should be relative to game directory
binary = QFileInfo(QDir::fromNativeSeparators(ToQString(GameInfo::instance().getGameDirectory())) + "/" + executable);
}
+
+ std::vector<Executable>::iterator current, end;
+ m_ExecutablesList.getExecutables(current, end);
+ for (; current != end; ++current) {
+ if (current->m_BinaryInfo == binary) {
+ steamAppID = current->m_SteamAppID;
+ currentDirectory = current->m_WorkingDirectory;
+ }
+ }
+
if (cwd.length() == 0) {
currentDirectory = binary.absolutePath();
}
|
