diff options
author | Narr the Reg <juangerman-13@hotmail.com> | 2022-12-15 20:22:07 +0100 |
---|---|---|
committer | Narr the Reg <juangerman-13@hotmail.com> | 2022-12-15 20:44:21 +0100 |
commit | dca4f0687a82b75382df9bf04a3f76c4afab56e2 (patch) | |
tree | 63cd36538d78b715a027dfb2ebb676735d130a4d /src/core/hle/kernel/svc.cpp | |
parent | Merge pull request #9433 from Tachi107/cmake-is-awful (diff) | |
download | yuzu-dca4f0687a82b75382df9bf04a3f76c4afab56e2.tar yuzu-dca4f0687a82b75382df9bf04a3f76c4afab56e2.tar.gz yuzu-dca4f0687a82b75382df9bf04a3f76c4afab56e2.tar.bz2 yuzu-dca4f0687a82b75382df9bf04a3f76c4afab56e2.tar.lz yuzu-dca4f0687a82b75382df9bf04a3f76c4afab56e2.tar.xz yuzu-dca4f0687a82b75382df9bf04a3f76c4afab56e2.tar.zst yuzu-dca4f0687a82b75382df9bf04a3f76c4afab56e2.zip |
Diffstat (limited to 'src/core/hle/kernel/svc.cpp')
-rw-r--r-- | src/core/hle/kernel/svc.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp index e520cab47..9fd7aae81 100644 --- a/src/core/hle/kernel/svc.cpp +++ b/src/core/hle/kernel/svc.cpp @@ -815,8 +815,15 @@ static Result GetInfo(Core::System& system, u64* result, u64 info_id, Handle han // 6.0.0+ TotalPhysicalMemoryAvailableWithoutSystemResource = 21, TotalPhysicalMemoryUsedWithoutSystemResource = 22, + // 10.0.0+ + IsApplication = 23, + // 13.0.0+ + FreeThreadCount = 24, + // 14.0.0+ + IsSvcPermitted = 26, // Homebrew only + MesosphereMeta = 65000, MesosphereCurrentProcess = 65001, }; @@ -840,7 +847,9 @@ static Result GetInfo(Core::System& system, u64* result, u64 info_id, Handle han case GetInfoType::TitleId: case GetInfoType::UserExceptionContextAddr: case GetInfoType::TotalPhysicalMemoryAvailableWithoutSystemResource: - case GetInfoType::TotalPhysicalMemoryUsedWithoutSystemResource: { + case GetInfoType::TotalPhysicalMemoryUsedWithoutSystemResource: + case GetInfoType::IsApplication: + case GetInfoType::FreeThreadCount: { if (info_sub_id != 0) { LOG_ERROR(Kernel_SVC, "Info sub id is non zero! info_id={}, info_sub_id={}", info_id, info_sub_id); @@ -929,6 +938,10 @@ static Result GetInfo(Core::System& system, u64* result, u64 info_id, Handle han *result = process->GetTotalPhysicalMemoryUsedWithoutSystemResource(); return ResultSuccess; + case GetInfoType::FreeThreadCount: + *result = process->GetFreeThreadCount(); + return ResultSuccess; + default: break; } |