MCPcopy Create free account
hub / github.com/ModOrganizer2/modorganizer / warnUnrecognized

Method warnUnrecognized

src/createinstancedialogpages.cpp:387–408  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

385}
386
387void 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
410std::vector<IPluginGame*> GamePage::sortedGamePlugins() const
411{

Callers

nothing calls this directly

Calls 3

setIconMethod · 0.80
setTextMethod · 0.45
execMethod · 0.45

Tested by

no test coverage detected