Line 57: |
Line 57: |
| ! Cmd || Name | | ! Cmd || Name |
| |- | | |- |
− | | 0 || [[#GetZero]] | + | | 0 || [[#GetDebugMode]] |
| |- | | |- |
− | | 1 || [[#GetProcessesWithFlag4]] | + | | 1 || [[#GetDebugProcesses]] |
| |- | | |- |
− | | 2 || [[#StartProcess]] | + | | 2 || [[#StartDebugProcess]] |
| |- | | |- |
− | | 3 || GetProcessTitleIdByPid | + | | 3 || [[#GetDebugProcessTitleIdByPid]] |
| |- | | |- |
| | 4 || [[#EnableDebugForTitleId]] | | | 4 || [[#EnableDebugForTitleId]] |
| |- | | |- |
− | | 5 || GetCrashingProcessPid | + | | 5 || [[#GetCrashingDebugProcessPid]] |
| |- | | |- |
| | 6 || [[#EnableDebug]] | | | 6 || [[#EnableDebug]] |
| |} | | |} |
| | | |
− | == GetZero == | + | == GetDebugMode == |
− | Always returns u32 0. | + | Always returns u32 0 on retail. |
| | | |
− | == GetProcessesWithFlag4 == | + | == GetDebugProcesses == |
| Returns an array of pids of all processes that have mask 4 set in process flags. | | Returns an array of pids of all processes that have mask 4 set in process flags. |
| | | |
− | == StartProcess == | + | == StartDebugProcess == |
| Takes a pid. Process state must be 0 or 1. Then it uses svcStartProcess(process_handle, u8, u8, u32) with args coming from ldr:pm GetProgramInfo. | | Takes a pid. Process state must be 0 or 1. Then it uses svcStartProcess(process_handle, u8, u8, u32) with args coming from ldr:pm GetProgramInfo. |
| | | |
| After that, it sets process state to 2. | | After that, it sets process state to 2. |
| + | |
| + | == GetDebugProcessTitleIdByPid == |
| + | Same as [[Process_Manager_services#GetProcessTitleIdByPid|GetProcessTitleIdByPid]] but for debug processes. |
| | | |
| == EnableDebugForTitleId == | | == EnableDebugForTitleId == |
Line 87: |
Line 90: |
| | | |
| Returns an event handle that is signaled when the requested title is launched. | | Returns an event handle that is signaled when the requested title is launched. |
| + | |
| + | == GetCrashingDebugProcessPid == |
| + | Same as [[Process_Manager_services#GetCrashingProcessPid|GetCrashingProcessPid]] but for debug processes. |
| | | |
| == EnableDebug == | | == EnableDebug == |
Line 98: |
Line 104: |
| ! Cmd || Name | | ! Cmd || Name |
| |- | | |- |
− | | 0 || GetProcessTitleIdByPid | + | | 0 || [[#GetProcessTitleIdByPid]] |
| |} | | |} |
| + | |
| + | == GetProcessTitleIdByPid == |
| + | Takes a pid and returns the title-id associated with the process. |
| | | |
| = pm:shell = | | = pm:shell = |