diff options
| author | 2015-01-08 22:38:33 -0500 | |
|---|---|---|
| committer | 2015-01-08 22:38:33 -0500 | |
| commit | d46f6500363024ac58cc23ba706e26d531a6076a (patch) | |
| tree | b5818b8b26092f425dccff628517f51fde47aaed /src/core/hle/function_wrappers.h | |
| parent | Merge pull request #451 from Subv/wut (diff) | |
| parent | SVC: Implemented the Timer service calls. (diff) | |
| download | yuzu-d46f6500363024ac58cc23ba706e26d531a6076a.tar.gz yuzu-d46f6500363024ac58cc23ba706e26d531a6076a.tar.xz yuzu-d46f6500363024ac58cc23ba706e26d531a6076a.zip | |
Merge pull request #255 from Subv/cbranch_3
Implemented timers
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() { | |||
| 135 | FuncReturn(retval); | 135 | FuncReturn(retval); |
| 136 | } | 136 | } |
| 137 | 137 | ||
| 138 | template<s32 func(u32, s64, s64)> void Wrap() { | ||
| 139 | s64 param1 = ((u64)PARAM(3) << 32) | PARAM(2); | ||
| 140 | s64 param2 = ((u64)PARAM(4) << 32) | PARAM(1); | ||
| 141 | FuncReturn(func(PARAM(0), param1, param2)); | ||
| 142 | } | ||
| 143 | |||
| 138 | //////////////////////////////////////////////////////////////////////////////////////////////////// | 144 | //////////////////////////////////////////////////////////////////////////////////////////////////// |
| 139 | // Function wrappers that return type u32 | 145 | // Function wrappers that return type u32 |
| 140 | 146 | ||