summaryrefslogtreecommitdiffstats
path: root/src/core/hle/function_wrappers.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2014-12-31 17:31:53 +0100
committerbunnei <bunneidev@gmail.com>2014-12-31 17:31:53 +0100
commit08b6cf778da3240dc78cff748c38c1188c7e6b69 (patch)
treef4e336af1e5cf5d72c2665470a96a9db73711ae7 /src/core/hle/function_wrappers.h
parentMerge pull request #375 from lioncash/uops (diff)
parentSOC_U: Preliminary implementation of sockets. (diff)
downloadyuzu-08b6cf778da3240dc78cff748c38c1188c7e6b69.tar
yuzu-08b6cf778da3240dc78cff748c38c1188c7e6b69.tar.gz
yuzu-08b6cf778da3240dc78cff748c38c1188c7e6b69.tar.bz2
yuzu-08b6cf778da3240dc78cff748c38c1188c7e6b69.tar.lz
yuzu-08b6cf778da3240dc78cff748c38c1188c7e6b69.tar.xz
yuzu-08b6cf778da3240dc78cff748c38c1188c7e6b69.tar.zst
yuzu-08b6cf778da3240dc78cff748c38c1188c7e6b69.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 3259ce9eb..0f822f84b 100644
--- a/src/core/hle/function_wrappers.h
+++ b/src/core/hle/function_wrappers.h
@@ -128,6 +128,13 @@ template<s32 func(s32*, u32, s32)> void Wrap() {
FuncReturn(retval);
}
+template<s32 func(u32*, u32, u32, u32, u32)> void Wrap() {
+ u32 param_1 = 0;
+ u32 retval = func(&param_1, PARAM(1), PARAM(2), PARAM(3), PARAM(4));
+ Core::g_app_core->SetReg(1, param_1);
+ FuncReturn(retval);
+}
+
////////////////////////////////////////////////////////////////////////////////////////////////////
// Function wrappers that return type u32