mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 12:32:40 +02:00
svc: change TitleId to ProgramId
This commit is contained in:
parent
4ecc597d0d
commit
07ad046acf
@ -164,7 +164,7 @@ typedef enum {
|
||||
InfoType_StackRegionSize = 15, ///< [2.0.0+] Size of the Stack memory region.
|
||||
InfoType_SystemResourceSizeTotal = 16, ///< [3.0.0+] Total memory allocated for process memory management.
|
||||
InfoType_SystemResourceSizeUsed = 17, ///< [3.0.0+] Amount of memory currently used by process memory management.
|
||||
InfoType_TitleId = 18, ///< [3.0.0+] Title ID for the process.
|
||||
InfoType_ProgramId = 18, ///< [3.0.0+] Program ID for the process.
|
||||
InfoType_InitialProcessIdRange = 19, ///< [4.0.0-4.1.0] Min/max initial process IDs.
|
||||
InfoType_UserExceptionContextAddress = 20, ///< [5.0.0+] Address of the process's exception context (for break).
|
||||
InfoType_TotalNonSystemMemorySize = 21, ///< [6.0.0+] Total amount of memory available for process, excluding that for process memory management.
|
||||
|
@ -30,7 +30,7 @@ static void _CacheVersion(void)
|
||||
g_Version = 1;
|
||||
if (R_VALUE(svcGetInfo(&tmp, InfoType_AslrRegionAddress, INVALID_HANDLE, 0)) != KERNELRESULT(InvalidEnumValue))
|
||||
g_Version = 2;
|
||||
if (R_VALUE(svcGetInfo(&tmp, InfoType_TitleId, INVALID_HANDLE, 0)) != KERNELRESULT(InvalidEnumValue))
|
||||
if (R_VALUE(svcGetInfo(&tmp, InfoType_ProgramId, INVALID_HANDLE, 0)) != KERNELRESULT(InvalidEnumValue))
|
||||
g_Version = 3;
|
||||
if (R_VALUE(svcGetInfo(&tmp, InfoType_InitialProcessIdRange, INVALID_HANDLE, 0)) != KERNELRESULT(InvalidEnumValue))
|
||||
g_Version = 4;
|
||||
|
Loading…
Reference in New Issue
Block a user