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

Method instance

src/commandline.cpp:399–410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

397}
398
399std::optional<QString> CommandLine::instance() const
400{
401 // note that moshortcut:// overrides -i
402
403 if (m_shortcut.isValid() && m_shortcut.hasInstance()) {
404 return m_shortcut.instanceName();
405 } else if (m_vm.count("instance")) {
406 return QString::fromStdString(m_vm["instance"].as<std::string>());
407 }
408
409 return {};
410}
411
412const MOShortcut& CommandLine::shortcut() const
413{

Callers 4

loadQtPluginMethod · 0.80
unloadPluginMethod · 0.80
externalMessageMethod · 0.80
runFunction · 0.80

Calls 3

hasInstanceMethod · 0.80
countMethod · 0.80
isValidMethod · 0.45

Tested by

no test coverage detected