diff options
| author | 2014-12-14 22:03:28 -0500 | |
|---|---|---|
| committer | 2014-12-14 22:03:28 -0500 | |
| commit | 17b4d6747a0185c30a5d7c5b90872a6daa3dbe99 (patch) | |
| tree | 096e29ba94d07ce7d390580f71f1893997cd1ec2 /src/core/hle/function_wrappers.h | |
| parent | Merge pull request #273 from bunnei/more-skyeye-fixes (diff) | |
| parent | Kernel/Semaphores: Fixed build (diff) | |
| download | yuzu-17b4d6747a0185c30a5d7c5b90872a6daa3dbe99.tar.gz yuzu-17b4d6747a0185c30a5d7c5b90872a6daa3dbe99.tar.xz yuzu-17b4d6747a0185c30a5d7c5b90872a6daa3dbe99.zip | |
Merge pull request #246 from Subv/cbranch_1
SVC: Implemented Semaphores
Diffstat (limited to 'src/core/hle/function_wrappers.h')
| -rw-r--r-- | src/core/hle/function_wrappers.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/core/hle/function_wrappers.h b/src/core/hle/function_wrappers.h index 3dbe25037..b44479b2f 100644 --- a/src/core/hle/function_wrappers.h +++ b/src/core/hle/function_wrappers.h | |||
| @@ -114,6 +114,20 @@ template<s32 func(u32*, const char*)> void Wrap() { | |||
| 114 | FuncReturn(retval); | 114 | FuncReturn(retval); |
| 115 | } | 115 | } |
| 116 | 116 | ||
| 117 | template<s32 func(u32*, s32, s32)> void Wrap() { | ||
| 118 | u32 param_1 = 0; | ||
| 119 | u32 retval = func(¶m_1, PARAM(1), PARAM(2)); | ||
| 120 | Core::g_app_core->SetReg(1, param_1); | ||
| 121 | FuncReturn(retval); | ||
| 122 | } | ||
| 123 | |||
| 124 | template<s32 func(s32*, u32, s32)> void Wrap() { | ||
| 125 | s32 param_1 = 0; | ||
| 126 | u32 retval = func(¶m_1, PARAM(1), PARAM(2)); | ||
| 127 | Core::g_app_core->SetReg(1, param_1); | ||
| 128 | FuncReturn(retval); | ||
| 129 | } | ||
| 130 | |||
| 117 | //////////////////////////////////////////////////////////////////////////////////////////////////// | 131 | //////////////////////////////////////////////////////////////////////////////////////////////////// |
| 118 | // Function wrappers that return type u32 | 132 | // Function wrappers that return type u32 |
| 119 | 133 | ||