MCPcopy Create free account
hub / github.com/XorTroll/uLaunch / LoadTargetImpl

Function LoadTargetImpl

projects/uLoader/source/ul/loader/loader_Target.cpp:405–422  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

403 }
404
405 NX_NORETURN void LoadTargetImpl() {
406 if(g_TargetInput.target_once && (g_TargetTimes >= 1)) {
407 auto target_opt = TargetOutput::Create(g_NextTargetPath, g_NextTargetArgv);
408 if(strlen(target_opt.nro_argv) == 0) {
409 util::CopyToStringBuffer(target_opt.nro_argv, target_opt.nro_path);
410 }
411
412 UL_RC_ASSERT(smInitialize());
413 UL_LOG_INFO("Sending target output... '%s' with argv '%s'", target_opt.nro_path, target_opt.nro_argv);
414 UL_RC_ASSERT(WriteTargetOutput(target_opt));
415 smExit();
416
417 exit(0);
418 }
419
420 g_TargetTimes++;
421 LoadTarget();
422 }
423
424 }
425

Callers 2

ext_LoadTargetImplFunction · 0.85
TargetFunction · 0.85

Calls 4

CreateFunction · 0.85
CopyToStringBufferFunction · 0.85
WriteTargetOutputFunction · 0.85
LoadTargetFunction · 0.85

Tested by

no test coverage detected