diff options
author | Lioncash <mathew1800@gmail.com> | 2019-06-10 00:20:20 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-06-10 00:22:30 +0200 |
commit | 3f87664d8fac06b024b0a59adfdfe570ab6195e5 (patch) | |
tree | 59b7c0e6fa849694b5e4c34f573310589e342496 /src/core/hle/kernel/svc.cpp | |
parent | kernel/svc: Amend naming for TotalMemoryUsage in svcGetInfo() (diff) | |
download | yuzu-3f87664d8fac06b024b0a59adfdfe570ab6195e5.tar yuzu-3f87664d8fac06b024b0a59adfdfe570ab6195e5.tar.gz yuzu-3f87664d8fac06b024b0a59adfdfe570ab6195e5.tar.bz2 yuzu-3f87664d8fac06b024b0a59adfdfe570ab6195e5.tar.lz yuzu-3f87664d8fac06b024b0a59adfdfe570ab6195e5.tar.xz yuzu-3f87664d8fac06b024b0a59adfdfe570ab6195e5.tar.zst yuzu-3f87664d8fac06b024b0a59adfdfe570ab6195e5.zip |
Diffstat (limited to 'src/core/hle/kernel/svc.cpp')
-rw-r--r-- | src/core/hle/kernel/svc.cpp | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp index 377a9bf48..f9c606bc5 100644 --- a/src/core/hle/kernel/svc.cpp +++ b/src/core/hle/kernel/svc.cpp @@ -730,6 +730,9 @@ static ResultCode GetInfo(Core::System& system, u64* result, u64 info_id, u64 ha PrivilegedProcessId = 19, // 5.0.0+ UserExceptionContextAddr = 20, + // 6.0.0+ + TotalPhysicalMemoryAvailableWithoutMmHeap = 21, + TotalPhysicalMemoryUsedWithoutMmHeap = 22, }; const auto info_id_type = static_cast<GetInfoType>(info_id); @@ -750,7 +753,9 @@ static ResultCode GetInfo(Core::System& system, u64* result, u64 info_id, u64 ha case GetInfoType::IsVirtualAddressMemoryEnabled: case GetInfoType::PersonalMmHeapUsage: case GetInfoType::TitleId: - case GetInfoType::UserExceptionContextAddr: { + case GetInfoType::UserExceptionContextAddr: + case GetInfoType::TotalPhysicalMemoryAvailableWithoutMmHeap: + case GetInfoType::TotalPhysicalMemoryUsedWithoutMmHeap: { if (info_sub_id != 0) { return ERR_INVALID_ENUM_VALUE; } @@ -804,7 +809,7 @@ static ResultCode GetInfo(Core::System& system, u64* result, u64 info_id, u64 ha return RESULT_SUCCESS; case GetInfoType::TotalPhysicalMemoryAvailable: - *result = process->VMManager().GetTotalPhysicalMemoryAvailable(); + *result = process->GetTotalPhysicalMemoryAvailable(); return RESULT_SUCCESS; case GetInfoType::TotalPhysicalMemoryUsed: @@ -825,6 +830,14 @@ static ResultCode GetInfo(Core::System& system, u64* result, u64 info_id, u64 ha *result = 0; return RESULT_SUCCESS; + case GetInfoType::TotalPhysicalMemoryAvailableWithoutMmHeap: + *result = process->GetTotalPhysicalMemoryAvailable(); + return RESULT_SUCCESS; + + case GetInfoType::TotalPhysicalMemoryUsedWithoutMmHeap: + *result = process->GetTotalPhysicalMemoryUsedWithoutMmHeap(); + return RESULT_SUCCESS; + default: break; } |