diff options
author | Subv <subv2112@gmail.com> | 2014-12-03 18:49:51 -0500 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2014-12-13 13:40:09 -0500 |
commit | 82c84883a5d10bd6c9a3516fe16b996c5333360e (patch) | |
tree | 79016ba73405e93affa092432c8c0b86bd917aac /src/core/hle/function_wrappers.h | |
parent | 9ce11b2d925b08352f9349ecbf228431581331f4 (diff) |
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 3dbe2503..dc366862 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() { FuncReturn(retval); } +template<s32 func(u32*, s32, s32)> void Wrap() { + u32 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 |