diff options
| author | Thomas Tanner <trtanner@btinternet.com> | 2015-11-25 19:31:05 +0000 |
|---|---|---|
| committer | Thomas Tanner <trtanner@btinternet.com> | 2015-11-25 19:31:05 +0000 |
| commit | 38c5899fef2f21561a00bd5b1df3eff8577ec986 (patch) | |
| tree | fddb56b11b86e450ea0a07de554ccde8dc7417e9 /src/main.cpp | |
| parent | b9b12ca765d1703ac2e3852746e7acc3a20949a9 (diff) | |
Replace GameInfo::getNexusInfoUrl with IPluginGame::getNexusManagementUrl
also added getNexusDisplayUrl for the other variant of getNexusPage
Removed skyrim static versions
note that Nexusinterface is now passed a game plugin rather than a URL and a game ID if you want to override the current game
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 31 |
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?")
|
