summaryrefslogtreecommitdiffstats
path: root/src/core/hle/function_wrappers.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2014-12-15 04:03:28 +0100
committerbunnei <bunneidev@gmail.com>2014-12-15 04:03:28 +0100
commit17b4d6747a0185c30a5d7c5b90872a6daa3dbe99 (patch)
tree096e29ba94d07ce7d390580f71f1893997cd1ec2 /src/core/hle/function_wrappers.h
parentMerge pull request #273 from bunnei/more-skyeye-fixes (diff)
parentKernel/Semaphores: Fixed build (diff)
downloadyuzu-17b4d6747a0185c30a5d7c5b90872a6daa3dbe99.tar
yuzu-17b4d6747a0185c30a5d7c5b90872a6daa3dbe99.tar.gz
yuzu-17b4d6747a0185c30a5d7c5b90872a6daa3dbe99.tar.bz2
yuzu-17b4d6747a0185c30a5d7c5b90872a6daa3dbe99.tar.lz
yuzu-17b4d6747a0185c30a5d7c5b90872a6daa3dbe99.tar.xz
yuzu-17b4d6747a0185c30a5d7c5b90872a6daa3dbe99.tar.zst
yuzu-17b4d6747a0185c30a5d7c5b90872a6daa3dbe99.zip
Diffstat (limited to 'src/core/hle/function_wrappers.h')
-rw-r--r--src/core/hle/function_wrappers.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/core/hle/function_wrappers.h b/src/core/hle/function_wrappers.h
index 3dbe25037..b44479b2f 100644
--- a/src/core/hle/function_wrappers.h
+++ b/src/core/hle/function_wrappers.h
@@ -114,6 +114,20 @@ 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(&param_1, PARAM(1), PARAM(2));
+ Core::g_app_core->SetReg(1, param_1);
+ 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