diff options
| author | Subv <subv2112@gmail.com> | 2014-12-04 11:40:36 -0500 |
|---|---|---|
| committer | Subv <subv2112@gmail.com> | 2014-12-13 13:40:10 -0500 |
| commit | 49b31badba5672bae3a5950abe3d45c883879c0d (patch) | |
| tree | 9e0b3da4ac87b39e58ea8d0f1c347b06a6e82169 /src/core/hle/function_wrappers.h | |
| parent | 82c84883a5d10bd6c9a3516fe16b996c5333360e (diff) | |
SVC: Implemented ReleaseSemaphore.
This behavior was tested on hardware, however i'm still not sure what use the "initial_count" parameter has
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 dc3668624..b44479b2f 100644 --- a/src/core/hle/function_wrappers.h +++ b/src/core/hle/function_wrappers.h @@ -121,6 +121,13 @@ template<s32 func(u32*, s32, s32)> void Wrap() { FuncReturn(retval); } +template<s32 func(s32*, u32, s32)> void Wrap() { + s32 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 |
