diff options
| author | Thomas Tanner <trtanner@btinternet.com> | 2015-11-29 14:44:12 +0000 |
|---|---|---|
| committer | Thomas Tanner <trtanner@btinternet.com> | 2015-11-29 14:44:12 +0000 |
| commit | c236078aa1d3b756aaabd2f2c1d28d7474de3c2d (patch) | |
| tree | 9b131b353743600b1228e941b2a468b9b8b158f7 /src/main.cpp | |
| parent | 9a88a190eb31c12aa391b1142461a09b1a32215d (diff) | |
Fix up so that hookdll continues to work properly
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 6 |
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());
|
