diff options
| -rw-r--r-- | src/settingsdialogpaths.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/settingsdialogpaths.cpp b/src/settingsdialogpaths.cpp index 197f1807..aafa750c 100644 --- a/src/settingsdialogpaths.cpp +++ b/src/settingsdialogpaths.cpp @@ -168,6 +168,13 @@ void PathsSettingsTab::on_browseGameDirBtn_clicked() return; } + // we need to find the game folder corresponding to the executable + // + // some game plugins have executable in subfolder, e.g. bin/game.exe, + // so we need to go up the parent folders until the concatenation of + // the folder and the binary path equals the game executable specified + // by the user + // QFileInfo newExe(temp); const auto binaryPath = settings().game().plugin()->binaryName(); QDir folder = newExe.absoluteDir(); |
