summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp31
1 files changed, 17 insertions, 14 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 4f79b0b2..72a63dc6 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -498,24 +498,27 @@ int main(int argc, char *argv[])
return 1;
}
- IPluginGame *game = organizer.managedGame();
+ //This is probably wrong too
+ {
+ IPluginGame *game = organizer.managedGameForUpdate();
- if (!settings.contains("game_edition")) {
- QStringList editions = game->gameVariants();
- if (editions.size() > 1) {
- SelectionDialog selection(QObject::tr("Please select the game edition you have (MO can't start the game correctly if this is set incorrectly!)"), nullptr);
- int index = 0;
- for (const QString &edition : editions) {
- selection.addChoice(edition, "", index++);
- }
- if (selection.exec() == QDialog::Rejected) {
- return -1;
- } else {
- settings.setValue("game_edition", selection.getChoiceString());
+ if (!settings.contains("game_edition")) {
+ QStringList editions = game->gameVariants();
+ if (editions.size() > 1) {
+ SelectionDialog selection(QObject::tr("Please select the game edition you have (MO can't start the game correctly if this is set incorrectly!)"), nullptr);
+ int index = 0;
+ for (const QString &edition : editions) {
+ selection.addChoice(edition, "", index++);
+ }
+ if (selection.exec() == QDialog::Rejected) {
+ return -1;
+ } else {
+ settings.setValue("game_edition", selection.getChoiceString());
+ }
}
}
+ game->setGameVariant(settings.value("game_edition").toString());
}
- game->setGameVariant(settings.value("game_edition").toString());
#pragma message("edition isn't used?")