diff options
author | Subv <subv2112@gmail.com> | 2014-12-04 00:49:51 +0100 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2014-12-13 19:40:09 +0100 |
commit | 82c84883a5d10bd6c9a3516fe16b996c5333360e (patch) | |
tree | 79016ba73405e93affa092432c8c0b86bd917aac /src/core/hle/function_wrappers.h | |
parent | Merge pull request #274 from lioncash/kernel (diff) | |
download | yuzu-82c84883a5d10bd6c9a3516fe16b996c5333360e.tar yuzu-82c84883a5d10bd6c9a3516fe16b996c5333360e.tar.gz yuzu-82c84883a5d10bd6c9a3516fe16b996c5333360e.tar.bz2 yuzu-82c84883a5d10bd6c9a3516fe16b996c5333360e.tar.lz yuzu-82c84883a5d10bd6c9a3516fe16b996c5333360e.tar.xz yuzu-82c84883a5d10bd6c9a3516fe16b996c5333360e.tar.zst yuzu-82c84883a5d10bd6c9a3516fe16b996c5333360e.zip |
Diffstat (limited to 'src/core/hle/function_wrappers.h')
-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 3dbe25037..dc3668624 100644 --- a/src/core/hle/function_wrappers.h +++ b/src/core/hle/function_wrappers.h @@ -114,6 +114,13 @@ template<s32 func(u32*, const char*)> void Wrap() { FuncReturn(retval); } +template<s32 func(u32*, s32, s32)> void Wrap() { + u32 param_1 = 0; + u32 retval = func(¶m_1, PARAM(1), PARAM(2)); + Core::g_app_core->SetReg(1, param_1); + FuncReturn(retval); +} + //////////////////////////////////////////////////////////////////////////////////////////////////// // Function wrappers that return type u32 |