diff options
author | Subv <subv2112@gmail.com> | 2014-12-04 20:45:47 +0100 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2015-01-09 03:22:14 +0100 |
commit | 07044651ef2644451dc4f78045856ad078cb69fe (patch) | |
tree | 50113ade759854c60c0e91864f27f2f680993e84 /src/core/hle/function_wrappers.h | |
parent | Merge pull request #425 from Subv/coretiming (diff) | |
download | yuzu-07044651ef2644451dc4f78045856ad078cb69fe.tar yuzu-07044651ef2644451dc4f78045856ad078cb69fe.tar.gz yuzu-07044651ef2644451dc4f78045856ad078cb69fe.tar.bz2 yuzu-07044651ef2644451dc4f78045856ad078cb69fe.tar.lz yuzu-07044651ef2644451dc4f78045856ad078cb69fe.tar.xz yuzu-07044651ef2644451dc4f78045856ad078cb69fe.tar.zst yuzu-07044651ef2644451dc4f78045856ad078cb69fe.zip |
Diffstat (limited to 'src/core/hle/function_wrappers.h')
-rw-r--r-- | src/core/hle/function_wrappers.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/hle/function_wrappers.h b/src/core/hle/function_wrappers.h index 0f822f84b..8eb4f252b 100644 --- a/src/core/hle/function_wrappers.h +++ b/src/core/hle/function_wrappers.h @@ -135,6 +135,12 @@ template<s32 func(u32*, u32, u32, u32, u32)> void Wrap() { FuncReturn(retval); } +template<s32 func(u32, s64, s64)> void Wrap() { + s64 param1 = ((u64)PARAM(3) << 32) | PARAM(2); + s64 param2 = ((u64)PARAM(4) << 32) | PARAM(1); + FuncReturn(func(PARAM(0), param1, param2)); +} + //////////////////////////////////////////////////////////////////////////////////////////////////// // Function wrappers that return type u32 |