From c236078aa1d3b756aaabd2f2c1d28d7474de3c2d Mon Sep 17 00:00:00 2001 From: Thomas Tanner Date: Sun, 29 Nov 2015 14:44:12 +0000 Subject: Fix up so that hookdll continues to work properly --- src/main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/main.cpp') 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()); -- cgit v1.3.1