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

Method forwardToPrimary

src/commandline.cpp:193–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191}
192
193bool CommandLine::forwardToPrimary(MOMultiProcess& multiProcess)
194{
195 if (m_shortcut.isValid()) {
196 multiProcess.sendMessage(m_shortcut.toString());
197 } else if (m_nxmLink) {
198 multiProcess.sendMessage(*m_nxmLink);
199 } else if (m_command && m_command->canForwardToPrimary()) {
200 multiProcess.sendMessage(QString::fromWCharArray(GetCommandLineW()));
201 } else {
202 return false;
203 }
204
205 return true;
206}
207
208std::optional<int> CommandLine::runEarly()
209{

Callers 1

runFunction · 0.80

Calls 4

sendMessageMethod · 0.80
canForwardToPrimaryMethod · 0.80
isValidMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected