diff options
author | bunnei <bunneidev@gmail.com> | 2019-12-11 03:48:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-11 03:48:37 +0100 |
commit | 34f8881d3e0e4fa99e9bb2838be19abcbc033e4e (patch) | |
tree | 957d1b1e5889e4cfdbd23f578595761155b5e5de /src/core/hle/kernel/svc_wrap.h | |
parent | Merge pull request #3211 from FernandoS27/depth-mode (diff) | |
parent | kernel/svc: Provide implementations for svcDumpInfo/svcDumpInfoNew (diff) | |
download | yuzu-34f8881d3e0e4fa99e9bb2838be19abcbc033e4e.tar yuzu-34f8881d3e0e4fa99e9bb2838be19abcbc033e4e.tar.gz yuzu-34f8881d3e0e4fa99e9bb2838be19abcbc033e4e.tar.bz2 yuzu-34f8881d3e0e4fa99e9bb2838be19abcbc033e4e.tar.lz yuzu-34f8881d3e0e4fa99e9bb2838be19abcbc033e4e.tar.xz yuzu-34f8881d3e0e4fa99e9bb2838be19abcbc033e4e.tar.zst yuzu-34f8881d3e0e4fa99e9bb2838be19abcbc033e4e.zip |
Diffstat (limited to 'src/core/hle/kernel/svc_wrap.h')
-rw-r--r-- | src/core/hle/kernel/svc_wrap.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/hle/kernel/svc_wrap.h b/src/core/hle/kernel/svc_wrap.h index c2d8d0dc3..9452e3b6f 100644 --- a/src/core/hle/kernel/svc_wrap.h +++ b/src/core/hle/kernel/svc_wrap.h @@ -311,6 +311,17 @@ void SvcWrap(Core::System& system) { func(system); } +template <void func(Core::System&, u32)> +void SvcWrap(Core::System& system) { + func(system, static_cast<u32>(Param(system, 0))); +} + +template <void func(Core::System&, u32, u64, u64, u64)> +void SvcWrap(Core::System& system) { + func(system, static_cast<u32>(Param(system, 0)), Param(system, 1), Param(system, 2), + Param(system, 3)); +} + template <void func(Core::System&, s64)> void SvcWrap(Core::System& system) { func(system, static_cast<s64>(Param(system, 0))); |