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

Method getGameURL

src/nexusinterface.cpp:400–414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

398}
399
400QString NexusInterface::getGameURL(QString gameName) const
401{
402 IPluginGame* game = getGame(gameName);
403 if (game != nullptr) {
404 QString gameNexusName = game->gameNexusName().toLower();
405 if (gameNexusName.isEmpty()) {
406 return "";
407 } else {
408 return "https://www.nexusmods.com/" + gameNexusName;
409 }
410 } else {
411 log::error("getGameURL can't find plugin for {}", gameName);
412 return "";
413 }
414}
415
416QString NexusInterface::getOldModsURL(QString gameName) const
417{

Callers 4

registerNexusPageMethod · 0.80
actionEndorseMOMethod · 0.80
actionWontEndorseMOMethod · 0.80

Calls 1

isEmptyMethod · 0.45

Tested by

no test coverage detected