diff options
| author | 2014-12-03 18:49:51 -0500 | |
|---|---|---|
| committer | 2014-12-13 13:40:09 -0500 | |
| commit | 82c84883a5d10bd6c9a3516fe16b996c5333360e (patch) | |
| tree | 79016ba73405e93affa092432c8c0b86bd917aac /src/core/hle/function_wrappers.h | |
| parent | Merge pull request #274 from lioncash/kernel (diff) | |
| download | yuzu-82c84883a5d10bd6c9a3516fe16b996c5333360e.tar.gz yuzu-82c84883a5d10bd6c9a3516fe16b996c5333360e.tar.xz yuzu-82c84883a5d10bd6c9a3516fe16b996c5333360e.zip | |
SVC: Implemented svcCreateSemaphore
ToDo: Implement svcReleaseSemaphore
* Some testing against hardware needed
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() { | |||
| 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 | |||
| 117 | //////////////////////////////////////////////////////////////////////////////////////////////////// | 124 | //////////////////////////////////////////////////////////////////////////////////////////////////// |
| 118 | // Function wrappers that return type u32 | 125 | // Function wrappers that return type u32 |
| 119 | 126 | ||