From b79f08661337f22d46d519218c1cc6c013a14d2c Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 12 Dec 2018 13:42:21 -0500 Subject: svc: Enable svcQueryProcessMemory svcQueryProcessMemory is trivial to implement, given all the behavior necessary for it is present, it just needs a handler for it. --- src/core/hle/kernel/svc.cpp | 2 +- src/core/hle/kernel/svc_wrap.h | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'src/core') 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"}, {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(Param(3)), static_cast(Param(3))).raw); } +template +void SvcWrap() { + FuncReturn(func(Param(0), Param(1), static_cast(Param(2)), Param(3)).raw); +} + template void SvcWrap() { FuncReturn(func(static_cast(Param(0)), Param(1), static_cast(Param(2))).raw); -- cgit v1.2.3