mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-06-01 15:28:21 -04:00
PM: Fix missing flags set/missing wait. Now works on 5.x.
This commit is contained in:
parent
3682a56062
commit
173e6c8c0f
2 changed files with 13 additions and 3 deletions
|
@ -94,7 +94,7 @@ void Registration::HandleProcessLaunch() {
|
|||
if ((program_info.application_type & 3) == 1) {
|
||||
ResourceLimitUtils::EnsureApplicationResourcesAvailable();
|
||||
}
|
||||
|
||||
|
||||
/* Try to create the process... */
|
||||
if (R_FAILED((rc = ldrPmCreateProcess(LAUNCHFLAGS_ARGLOW(launch_flags) | LAUNCHFLAGS_ARGHIGH(launch_flags), new_process.ldr_queue_index, ResourceLimitUtils::GetResourceLimitHandle(program_info.application_type), &new_process.handle)))) {
|
||||
goto PROCESS_CREATION_FAILED;
|
||||
|
@ -121,8 +121,8 @@ void Registration::HandleProcessLaunch() {
|
|||
if (program_info.application_type & 1) {
|
||||
new_process.flags |= 0x40;
|
||||
}
|
||||
if (kernelAbove200() && LAUNCHFLAGS_NOTIYDEBUGSPECIAL(launch_flags) && (program_info.application_type & 4)) {
|
||||
|
||||
if (kernelAbove200() && LAUNCHFLAGS_NOTIYDEBUGSPECIAL(launch_flags) && (program_info.application_type & 4)) {
|
||||
new_process.flags |= 0x80;
|
||||
}
|
||||
if (LAUNCHFLAGS_NOTIFYWHENEXITED(launch_flags)) {
|
||||
new_process.flags |= 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue