diff options
author | Lioncash <mathew1800@gmail.com> | 2018-12-12 19:42:21 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-12-12 21:45:05 +0100 |
commit | b79f08661337f22d46d519218c1cc6c013a14d2c (patch) | |
tree | b4c996d3d1ff9d8cd1b51e1416a7df4dd4f2a7a1 /src/core/hle | |
parent | svc: Write out the complete MemoryInfo structure in QueryProcessMemory (diff) | |
download | yuzu-b79f08661337f22d46d519218c1cc6c013a14d2c.tar yuzu-b79f08661337f22d46d519218c1cc6c013a14d2c.tar.gz yuzu-b79f08661337f22d46d519218c1cc6c013a14d2c.tar.bz2 yuzu-b79f08661337f22d46d519218c1cc6c013a14d2c.tar.lz yuzu-b79f08661337f22d46d519218c1cc6c013a14d2c.tar.xz yuzu-b79f08661337f22d46d519218c1cc6c013a14d2c.tar.zst yuzu-b79f08661337f22d46d519218c1cc6c013a14d2c.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/kernel/svc.cpp | 2 | ||||
-rw-r--r-- | src/core/hle/kernel/svc_wrap.h | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp index 8b51aa2c7..c1100f197 100644 --- a/src/core/hle/kernel/svc.cpp +++ b/src/core/hle/kernel/svc.cpp @@ -1912,7 +1912,7 @@ static const FunctionDef SVC_Table[] = { {0x73, nullptr, "SetProcessMemoryPermission"}, {0x74, nullptr, "MapProcessMemory"}, {0x75, nullptr, "UnmapProcessMemory"}, - {0x76, nullptr, "QueryProcessMemory"}, + {0x76, SvcWrap<QueryProcessMemory>, "QueryProcessMemory"}, {0x77, nullptr, "MapProcessCodeMemory"}, {0x78, nullptr, "UnmapProcessCodeMemory"}, {0x79, nullptr, "CreateProcess"}, diff --git a/src/core/hle/kernel/svc_wrap.h b/src/core/hle/kernel/svc_wrap.h index f03b5438b..b762fd93e 100644 --- a/src/core/hle/kernel/svc_wrap.h +++ b/src/core/hle/kernel/svc_wrap.h @@ -130,6 +130,11 @@ void SvcWrap() { func(Param(0), Param(1), static_cast<u32>(Param(3)), static_cast<u32>(Param(3))).raw); } +template <ResultCode func(u64, u64, u32, u64)> +void SvcWrap() { + FuncReturn(func(Param(0), Param(1), static_cast<u32>(Param(2)), Param(3)).raw); +} + template <ResultCode func(u32, u64, u32)> void SvcWrap() { FuncReturn(func(static_cast<u32>(Param(0)), Param(1), static_cast<u32>(Param(2))).raw); |