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

Method startApplication

src/organizerproxy.cpp:176–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176HANDLE OrganizerProxy::startApplication(const QString& exe, const QStringList& args,
177 const QString& cwd, const QString& profile,
178 const QString& overwrite, bool ignoreOverwrite)
179{
180 log::debug("a plugin has requested to start an application:\n"
181 " . executable: '{}'\n"
182 " . args: '{}'\n"
183 " . cwd: '{}'\n"
184 " . profile: '{}'\n"
185 " . overwrite: '{}'\n"
186 " . ignore overwrite: {}",
187 exe, args.join(" "), cwd, profile, overwrite, ignoreOverwrite);
188
189 auto runner = m_Proxied->processRunner();
190
191 // don't wait for completion
192 runner.setFromFileOrExecutable(exe, args, cwd, profile, overwrite, ignoreOverwrite)
193 .run();
194
195 // the plugin is in charge of closing the handle, unless waitForApplication()
196 // is called on it
197 return runner.stealProcessHandle().release();
198}
199
200bool OrganizerProxy::waitForApplication(HANDLE handle, bool refresh,
201 LPDWORD exitCode) const

Callers

nothing calls this directly

Calls 3

processRunnerMethod · 0.80
stealProcessHandleMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected