NSS:LaunchTitle: Difference between revisions

Created page with "=Request= {| class="wikitable" border="1" |- ! Index Word ! Description |- | 0 | Header code [0x0002....] |- | 1 | TitleID lower word |- | 2 | TitleID upper word |- | 3 | Proce..."
 
 
(6 intermediate revisions by 2 users not shown)
Line 6: Line 6:
|-
|-
| 0
| 0
| Header code [0x0002....]
| Header code [0x000200C0]
|-
|-
| 1
| 1-2
| TitleID lower word
| u64, Title ID
|-
| 2
| TitleID upper word
|-
|-
| 3
| 3
| Process launch flags
| [[PMApp:LaunchTitle#Launch_Flags|Launch Flags]]
|}
|}


Line 31: Line 28:
|-
|-
| 2
| 2
| Launched process' ProcessId
| Process ID
|}
|}
=Description=
This is a wrapper for [[PMApp:LaunchTitle]]. The [[Filesystem_services#MediaType|MediaType]] is determined by the input title ID. The [[Filesystem_services#MediaType|Game Card MediaType]] is used when the input title ID is zero. The [[Filesystem_services#MediaType|NAND MediaType]] is used when the input title ID has the content category system flag set, otherwise the [[Filesystem_services#MediaType|SD MediaType]] is used.
The [[PMApp:LaunchTitle#Launch_Flags|launch flags]] passed to [[PMApp:LaunchTitle]] have bit 0 cleared (normal application) and bit 1 set (load dependencies)
Home Menu only uses this command for launching system modules.
This won't relaunch titles which are already running(PID won't change), hence this can also be used to get the PID of already running processes.