| 385 | } |
| 386 | |
| 387 | void GamePage::warnUnrecognized(const QString& path) |
| 388 | { |
| 389 | // put the list of supported games in the details textbox |
| 390 | QString supportedGames; |
| 391 | for (auto* game : sortedGamePlugins()) { |
| 392 | supportedGames += game->displayGameName() + "\n"; |
| 393 | } |
| 394 | |
| 395 | QMessageBox dlg(&m_dlg); |
| 396 | |
| 397 | dlg.setWindowTitle(QObject::tr("Unrecognized game")); |
| 398 | dlg.setText( |
| 399 | QObject::tr("The folder %1 does not seem to contain a game Mod Organizer can " |
| 400 | "manage.") |
| 401 | .arg(path)); |
| 402 | dlg.setInformativeText(QObject::tr("See details for the list of supported games.")); |
| 403 | dlg.setDetailedText(supportedGames); |
| 404 | dlg.setIcon(QMessageBox::Warning); |
| 405 | dlg.setStandardButtons(QMessageBox::Ok); |
| 406 | |
| 407 | dlg.exec(); |
| 408 | } |
| 409 | |
| 410 | std::vector<IPluginGame*> GamePage::sortedGamePlugins() const |
| 411 | { |