MCPcopy Create free account
hub / github.com/baldurk/renderdoc / Execute

Method Execute

renderdoccmd/renderdoccmd.cpp:227–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225 }
226
227 virtual int Execute(const CaptureOptions &opts)
228 {
229 std::cout << "Launching '" << executable << "'";
230
231 if(!cmdLine.empty())
232 std::cout << " with params: " << cmdLine;
233
234 std::cout << std::endl;
235
236 rdcarray<EnvironmentModification> env;
237
238 ExecuteResult res = RENDERDOC_ExecuteAndInject(
239 conv(executable), conv(workingDir), conv(cmdLine), env, conv(logFile), opts, wait_for_exit);
240
241 if(res.result.code != ResultCode::Succeeded)
242 {
243 std::cerr << "Failed to create & inject: " << res.result.Message() << std::endl;
244 return (int)res.result.code;
245 }
246
247 if(wait_for_exit)
248 {
249 std::cerr << "'" << executable << "' finished executing." << std::endl;
250 res.ident = 0;
251 }
252 else
253 {
254 std::cerr << "Launched as ID " << res.ident << std::endl;
255 }
256
257 return res.ident;
258 }
259
260 std::string EscapeArgument(const std::string &arg)
261 {

Callers

nothing calls this directly

Calls 3

convFunction · 0.70
emptyMethod · 0.45

Tested by

no test coverage detected