mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-29 14:57:41 -05:00
svc: Return process title ID if queried in GetInfo()
We already have the variable itself set up to perform this task, so we can just return its value from the currently executing process instead of always stubbing it to zero.
This commit is contained in:
parent
6426b0f551
commit
e81354ae38
1 changed files with 1 additions and 2 deletions
|
@ -319,8 +319,7 @@ static ResultCode GetInfo(u64* result, u64 info_id, u64 handle, u64 info_sub_id)
|
||||||
*result = Core::CurrentProcess()->is_virtual_address_memory_enabled;
|
*result = Core::CurrentProcess()->is_virtual_address_memory_enabled;
|
||||||
break;
|
break;
|
||||||
case GetInfoType::TitleId:
|
case GetInfoType::TitleId:
|
||||||
LOG_WARNING(Kernel_SVC, "(STUBBED) Attempted to query titleid, returned 0");
|
*result = Core::CurrentProcess()->program_id;
|
||||||
*result = 0;
|
|
||||||
break;
|
break;
|
||||||
case GetInfoType::PrivilegedProcessId:
|
case GetInfoType::PrivilegedProcessId:
|
||||||
LOG_WARNING(Kernel_SVC,
|
LOG_WARNING(Kernel_SVC,
|
||||||
|
|
Loading…
Reference in a new issue