diff options
author | Subv <subv2112@gmail.com> | 2018-01-08 03:24:19 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-01-11 05:27:59 +0100 |
commit | ba02f0deefcf3e748615cc00ad99bcae4d681fa3 (patch) | |
tree | 5c94e8e34134e3efc8bd583ed799d96738064ff3 /src/core/hle/kernel/svc_wrap.h | |
parent | svc: Stub SetMemoryAttribute (diff) | |
download | yuzu-ba02f0deefcf3e748615cc00ad99bcae4d681fa3.tar yuzu-ba02f0deefcf3e748615cc00ad99bcae4d681fa3.tar.gz yuzu-ba02f0deefcf3e748615cc00ad99bcae4d681fa3.tar.bz2 yuzu-ba02f0deefcf3e748615cc00ad99bcae4d681fa3.tar.lz yuzu-ba02f0deefcf3e748615cc00ad99bcae4d681fa3.tar.xz yuzu-ba02f0deefcf3e748615cc00ad99bcae4d681fa3.tar.zst yuzu-ba02f0deefcf3e748615cc00ad99bcae4d681fa3.zip |
Diffstat (limited to 'src/core/hle/kernel/svc_wrap.h')
-rw-r--r-- | src/core/hle/kernel/svc_wrap.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/hle/kernel/svc_wrap.h b/src/core/hle/kernel/svc_wrap.h index befc4a727..31cf71a0d 100644 --- a/src/core/hle/kernel/svc_wrap.h +++ b/src/core/hle/kernel/svc_wrap.h @@ -132,6 +132,14 @@ void SvcWrap() { FuncReturn(retval); } +template <ResultCode func(u32*, u64, u64, u32)> +void SvcWrap() { + u32 param_1 = 0; + u32 retval = func(¶m_1, PARAM(1), PARAM(2), (u32)(PARAM(3) & 0xFFFFFFFF)).raw; + Core::CPU().SetReg(1, param_1); + FuncReturn(retval); +} + //////////////////////////////////////////////////////////////////////////////////////////////////// // Function wrappers that return type u32 |