diff options
author | bunnei <bunneidev@gmail.com> | 2015-03-24 04:55:21 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2015-04-10 01:05:21 +0200 |
commit | 7b9f428b23e1761e7b6c177d2e8eb9219ac6b7f6 (patch) | |
tree | 597dff81a4b2935daaa7890c932b00cea4d6ae53 /src/core/hle/function_wrappers.h | |
parent | SVC: Reschedule on svcCreateThread. (diff) | |
download | yuzu-7b9f428b23e1761e7b6c177d2e8eb9219ac6b7f6.tar yuzu-7b9f428b23e1761e7b6c177d2e8eb9219ac6b7f6.tar.gz yuzu-7b9f428b23e1761e7b6c177d2e8eb9219ac6b7f6.tar.bz2 yuzu-7b9f428b23e1761e7b6c177d2e8eb9219ac6b7f6.tar.lz yuzu-7b9f428b23e1761e7b6c177d2e8eb9219ac6b7f6.tar.xz yuzu-7b9f428b23e1761e7b6c177d2e8eb9219ac6b7f6.tar.zst yuzu-7b9f428b23e1761e7b6c177d2e8eb9219ac6b7f6.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/function_wrappers.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/hle/function_wrappers.h b/src/core/hle/function_wrappers.h index 0b6b6f518..be2626eef 100644 --- a/src/core/hle/function_wrappers.h +++ b/src/core/hle/function_wrappers.h @@ -46,6 +46,13 @@ template<ResultCode func(u32*, u32, u32, u32, u32, u32)> void Wrap(){ FuncReturn(retval); } +template<ResultCode func(u32*, s32, u32, u32, u32, s32)> void Wrap() { + u32 param_1 = 0; + u32 retval = func(¶m_1, PARAM(0), PARAM(1), PARAM(2), PARAM(3), PARAM(4)).raw; + Core::g_app_core->SetReg(1, param_1); + FuncReturn(retval); +} + template<ResultCode func(s32*, u32*, s32, bool, s64)> void Wrap() { s32 param_1 = 0; s32 retval = func(¶m_1, (Handle*)Memory::GetPointer(PARAM(1)), (s32)PARAM(2), |