summaryrefslogtreecommitdiffstats
path: root/src/core/hle/function_wrappers.h
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2014-12-04 17:40:36 +0100
committerSubv <subv2112@gmail.com>2014-12-13 19:40:10 +0100
commit49b31badba5672bae3a5950abe3d45c883879c0d (patch)
tree9e0b3da4ac87b39e58ea8d0f1c347b06a6e82169 /src/core/hle/function_wrappers.h
parentSVC: Implemented svcCreateSemaphore (diff)
downloadyuzu-49b31badba5672bae3a5950abe3d45c883879c0d.tar
yuzu-49b31badba5672bae3a5950abe3d45c883879c0d.tar.gz
yuzu-49b31badba5672bae3a5950abe3d45c883879c0d.tar.bz2
yuzu-49b31badba5672bae3a5950abe3d45c883879c0d.tar.lz
yuzu-49b31badba5672bae3a5950abe3d45c883879c0d.tar.xz
yuzu-49b31badba5672bae3a5950abe3d45c883879c0d.tar.zst
yuzu-49b31badba5672bae3a5950abe3d45c883879c0d.zip
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 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(&param_1, PARAM(1), PARAM(2));
+ Core::g_app_core->SetReg(1, param_1);
+ FuncReturn(retval);
+}
+
////////////////////////////////////////////////////////////////////////////////////////////////////
// Function wrappers that return type u32