summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Tanner <trtanner@btinternet.com>2015-11-29 14:44:12 +0000
committerThomas Tanner <trtanner@btinternet.com>2015-11-29 14:44:12 +0000
commitc236078aa1d3b756aaabd2f2c1d28d7474de3c2d (patch)
tree9b131b353743600b1228e941b2a468b9b8b158f7
parent9a88a190eb31c12aa391b1142461a09b1a32215d (diff)
Fix up so that hookdll continues to work properly
-rw-r--r--src/main.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index e9351c97..353e7202 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -334,9 +334,11 @@ QString determineProfile(QStringList &arguments, const QSettings &settings)
MOBase::IPluginGame *selectGame(QSettings &settings, QDir const &gamePath, MOBase::IPluginGame *game)
{
settings.setValue("gameName", game->gameName());
- if (gamePath == game->gameDirectory()) {
+ //Sadly, hookdll needs gamePath in order to run. So following code block is
+ //commented out
+ /*if (gamePath == game->gameDirectory()) {
settings.remove("gamePath");
- } else {
+ } else*/ {
QString gameDir = gamePath.absolutePath();
game->setGamePath(gameDir);
settings.setValue("gamePath", QDir::toNativeSeparators(gameDir).toUtf8().constData());