summaryrefslogtreecommitdiffstats
path: root/src/core/hle/function_wrappers.h
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2014-12-04 00:49:51 +0100
committerSubv <subv2112@gmail.com>2014-12-13 19:40:09 +0100
commit82c84883a5d10bd6c9a3516fe16b996c5333360e (patch)
tree79016ba73405e93affa092432c8c0b86bd917aac /src/core/hle/function_wrappers.h
parentMerge pull request #274 from lioncash/kernel (diff)
downloadyuzu-82c84883a5d10bd6c9a3516fe16b996c5333360e.tar
yuzu-82c84883a5d10bd6c9a3516fe16b996c5333360e.tar.gz
yuzu-82c84883a5d10bd6c9a3516fe16b996c5333360e.tar.bz2
yuzu-82c84883a5d10bd6c9a3516fe16b996c5333360e.tar.lz
yuzu-82c84883a5d10bd6c9a3516fe16b996c5333360e.tar.xz
yuzu-82c84883a5d10bd6c9a3516fe16b996c5333360e.tar.zst
yuzu-82c84883a5d10bd6c9a3516fe16b996c5333360e.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 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() {
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);
+}
+
////////////////////////////////////////////////////////////////////////////////////////////////////
// Function wrappers that return type u32