mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-03 10:02:14 +02:00
pgl: fix argument order for LaunchProgram on 12.x
This commit is contained in:
parent
0d32a2c0d5
commit
194a8f537b
@ -83,15 +83,21 @@ static Result _pglCmdInU64(u64 inval, u32 cmd_id) {
|
||||
}
|
||||
|
||||
Result pglLaunchProgram(u64 *out_pid, const NcmProgramLocation *loc, u32 pm_launch_flags, u8 pgl_launch_flags) {
|
||||
if (_pglShouldUseTipc()) {
|
||||
const struct {
|
||||
NcmProgramLocation loc;
|
||||
u32 pm_flags;
|
||||
u8 pgl_flags;
|
||||
} in = { *loc, pm_launch_flags, pgl_launch_flags };
|
||||
|
||||
return tipcDispatchInOut(&g_pglSrv.tipc, 0, in, *out_pid);
|
||||
} else {
|
||||
const struct {
|
||||
u8 pgl_flags;
|
||||
u32 pm_flags;
|
||||
NcmProgramLocation loc;
|
||||
} in = { pgl_launch_flags, pm_launch_flags, *loc };
|
||||
|
||||
if (_pglShouldUseTipc()) {
|
||||
return tipcDispatchInOut(&g_pglSrv.tipc, 0, in, *out_pid);
|
||||
} else {
|
||||
return serviceDispatchInOut(&g_pglSrv.cmif, 0, in, *out_pid);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user