summaryrefslogtreecommitdiffstats
path: root/src/core/hle/function_wrappers.h
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2015-11-27 04:00:16 +0100
committerYuri Kunde Schlesner <yuriks@yuriks.net>2015-12-01 04:49:44 +0100
commit84a22cb5947b0733a043429032367227e73342dc (patch)
tree928497d2056d1c5ea719ac0cb359888b0df4d6bc /src/core/hle/function_wrappers.h
parentMerge pull request #1259 from lioncash/zero (diff)
downloadyuzu-84a22cb5947b0733a043429032367227e73342dc.tar
yuzu-84a22cb5947b0733a043429032367227e73342dc.tar.gz
yuzu-84a22cb5947b0733a043429032367227e73342dc.tar.bz2
yuzu-84a22cb5947b0733a043429032367227e73342dc.tar.lz
yuzu-84a22cb5947b0733a043429032367227e73342dc.tar.xz
yuzu-84a22cb5947b0733a043429032367227e73342dc.tar.zst
yuzu-84a22cb5947b0733a043429032367227e73342dc.zip
Diffstat (limited to 'src/core/hle/function_wrappers.h')
-rw-r--r--src/core/hle/function_wrappers.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/hle/function_wrappers.h b/src/core/hle/function_wrappers.h
index 5846a161b..3501e45db 100644
--- a/src/core/hle/function_wrappers.h
+++ b/src/core/hle/function_wrappers.h
@@ -159,6 +159,14 @@ template<ResultCode func(s32*, u32, s32)> void Wrap() {
FuncReturn(retval);
}
+template<ResultCode func(s64*, u32, s32)> void Wrap() {
+ s64 param_1 = 0;
+ u32 retval = func(&param_1, PARAM(1), PARAM(2)).raw;
+ Core::g_app_core->SetReg(1, (u32)param_1);
+ Core::g_app_core->SetReg(2, (u32)(param_1 >> 32));
+ FuncReturn(retval);
+}
+
template<ResultCode 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)).raw;