summaryrefslogtreecommitdiff
path: root/src/core/hle/function_wrappers.h
diff options
context:
space:
mode:
authorGravatar Subv2014-12-03 18:49:51 -0500
committerGravatar Subv2014-12-13 13:40:09 -0500
commit82c84883a5d10bd6c9a3516fe16b996c5333360e (patch)
tree79016ba73405e93affa092432c8c0b86bd917aac /src/core/hle/function_wrappers.h
parentMerge pull request #274 from lioncash/kernel (diff)
downloadyuzu-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.h7
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
117template<s32 func(u32*, s32, s32)> void Wrap() {
118 u32 param_1 = 0;
119 u32 retval = func(&param_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