DLPSRVR:IsChild: Difference between revisions

From 3dbrew
Jump to navigation Jump to search
DaniElectra (talk | contribs)
Created page with "=Request= {| class="wikitable" border="1" |- ! Index Word ! Description |- | 0 | Header code [0x000E0040] |- | 1 | Process ID |} =Response= {| class="wikitable" border="1"..."
 
DaniElectra (talk | contribs)
m Description: Add missing check for 0x1
 
Line 29: Line 29:


=Description=
=Description=
This uses command [[FS:GetProgramLaunchInfo]] to get the title ID of the given process ID. Then it checks if the high title ID matches with 0x40000. If it matches, then it returns false, otherwise it returns true.
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.

Latest revision as of 23:16, 8 July 2024

Request

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

Response

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

Description

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.