1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-26 13:52:21 +00:00

Loader: Call svcCreateProcess()

This commit is contained in:
Michael Scire 2018-04-24 02:12:19 -06:00
parent 2d6445d2f9
commit 1c47959bca

View file

@ -142,7 +142,11 @@ Result ProcessCreation::CreateProcess(Handle *out_process_h, u64 index, char *nc
/* TODO: Figure out where NSOs will be mapped, and how much space they (and arguments) will take up. */
/* TODO: Call svcCreateProcessInfo(). */
/* Call svcCreateProcess(). */
rc = svcCreateProcess(out_process_h, &process_info, (u32 *)npdm_info.aci0_kac, npdm_info.aci0->kac_size/sizeof(u32));
if (R_FAILED(rc)) {
goto CREATE_PROCESS_END;
}
/* TODO: For each NSO, call svcMapProcessMemory, load the NSO into memory there (validating it), and then svcUnmapProcessMemory. */