DLPSRVR:IsChild

From 3dbrew
Revision as of 23:16, 8 July 2024 by DaniElectra (talk | contribs) (→‎Description: Add missing check for 0x1)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Request[edit]

Index Word Description
0 Header code [0x000E0040]
1 Process ID

Response[edit]

Index Word Description
0 Header code
1 Result code
2 bool, is a DLP child

Description[edit]

This uses command FS:GetProgramLaunchInfo to get the title ID of the given process ID. Then it checks that (high_title_id & 0xFFFFC000 == 0x40000) && (high_title_id & 0xFFFF == 0x1) (in other words, the high title ID must match 0x40001). If it matches, then it returns true, otherwise it returns false.