diff --git a/nx/include/switch/services/pm.h b/nx/include/switch/services/pm.h index d68ddf71..1196cfa0 100644 --- a/nx/include/switch/services/pm.h +++ b/nx/include/switch/services/pm.h @@ -98,7 +98,7 @@ Result pmdmntClearHook(u32 which); Result pminfoGetProgramId(u64* title_id_out, u64 pid); -Result pmshellLaunchProgram(u32 launch_flags, NcmProgramLocation *location, u64 *pid); +Result pmshellLaunchProgram(u32 launch_flags, const NcmProgramLocation *location, u64 *pid); Result pmshellTerminateProcess(u64 processID); Result pmshellTerminateProgram(u64 titleID); Result pmshellGetProcessEventHandle(Event* out); // Autoclear for pmshellProcessEvent is always true. diff --git a/nx/source/services/pm.c b/nx/source/services/pm.c index 42f5b4a9..e287d8b9 100644 --- a/nx/source/services/pm.c +++ b/nx/source/services/pm.c @@ -104,7 +104,7 @@ Result pminfoGetProgramId(u64* title_id_out, u64 pid) { // pmshell -Result pmshellLaunchProgram(u32 launch_flags, NcmProgramLocation *location, u64 *pid) { +Result pmshellLaunchProgram(u32 launch_flags, const NcmProgramLocation *location, u64 *pid) { const struct { u32 launch_flags; u32 pad;