diff options
| author | Al12rs <gabriel.cortesi@outlook.com> | 2017-11-10 21:00:24 +0100 |
|---|---|---|
| committer | Al12rs <gabriel.cortesi@outlook.com> | 2017-11-10 21:00:24 +0100 |
| commit | 3974ddced4e02866c6548066d0c546f3cf6d77db (patch) | |
| tree | dda4aa6df7d5dd5dd3eeea9bdadbbdcf09d5e6f4 /src/main.cpp | |
| parent | 55a65b16cc8491978c5a0b4c1f4ae44cc460de8f (diff) | |
Fix for MO finding the wrong game to manage.
Commented out code that tried to deduce game and found wrong one. Now, if not already set in INI, file MO will ask the user which one to manage.
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index d14641a4..526563a2 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -318,6 +318,9 @@ MOBase::IPluginGame *determineCurrentGame(QString const &moPath, QSettings &sett }
}
+ //The following code would try to determine the right game to mange but it would usually find the wrong one
+ //so it was commented out.
+ /*
//OK, we are in a new setup or existing info is useless.
//See if MO has been installed inside a game directory
for (IPluginGame * const game : plugins.plugins<IPluginGame>()) {
@@ -341,6 +344,7 @@ MOBase::IPluginGame *determineCurrentGame(QString const &moPath, QSettings &sett //OK, chop off the last directory and try again
} while (gameDir.cdUp());
}
+ */
//Then try a selection dialogue.
if (!gamePath.isEmpty() || !gameName.isEmpty()) {
|
