diff options
| author | JPikachu <jpikachu.eden@gmail.com> | 2025-04-11 02:26:37 +0100 |
|---|---|---|
| committer | JPikachu <fakemail@gmail.com> | 2025-04-12 16:23:47 +0100 |
| commit | e0795f2b4012a643517ee62c0ff83f824317df05 (patch) | |
| tree | 49cb6a3181fc3f019909155c8b2741b82ee140b3 /src/core/hle/kernel | |
| parent | 0d031e2f3fade90f7f2ffff2a006647b2f83a382 (diff) | |
Service: Add AliasRegionExtraSize
Thanks to Briar for finding and testing the Service
Credit: Antique - [Sudachi] Dev (https://sudachi.emuplace.app/)
Diffstat (limited to 'src/core/hle/kernel')
| -rw-r--r-- | src/core/hle/kernel/svc/svc_info.cpp | 7 | ||||
| -rw-r--r-- | src/core/hle/kernel/svc_types.h | 1 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/core/hle/kernel/svc/svc_info.cpp b/src/core/hle/kernel/svc/svc_info.cpp index 231e4d0e1b..1814f5e90e 100644 --- a/src/core/hle/kernel/svc/svc_info.cpp +++ b/src/core/hle/kernel/svc/svc_info.cpp @@ -37,7 +37,8 @@ Result GetInfo(Core::System& system, u64* result, InfoType info_id_type, Handle case InfoType::TotalNonSystemMemorySize: case InfoType::UsedNonSystemMemorySize: case InfoType::IsApplication: - case InfoType::FreeThreadCount: { + case InfoType::FreeThreadCount:
+ case InfoType::AliasRegionExtraSize: {
R_UNLESS(info_sub_id == 0, ResultInvalidEnumValue); const auto& handle_table = GetCurrentProcess(system.Kernel()).GetHandleTable(); @@ -134,6 +135,10 @@ Result GetInfo(Core::System& system, u64* result, InfoType info_id_type, Handle } R_SUCCEED(); + case InfoType::AliasRegionExtraSize:
+ // TODO (jarrodnorwell): do this when KIP's NPDM header is finished
+ R_SUCCEED();
+
default: break; } diff --git a/src/core/hle/kernel/svc_types.h b/src/core/hle/kernel/svc_types.h index ab432ea78b..d02548ba73 100644 --- a/src/core/hle/kernel/svc_types.h +++ b/src/core/hle/kernel/svc_types.h @@ -153,6 +153,7 @@ enum class InfoType : u32 { ThreadTickCount = 25, IsSvcPermitted = 26, IoRegionHint = 27, + AliasRegionExtraSize = 28,
MesosphereMeta = 65000, MesosphereCurrentProcess = 65001, |
