diff options
author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2015-08-06 02:39:53 +0200 |
---|---|---|
committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2015-08-16 06:03:48 +0200 |
commit | 14eca982f4da2bfd4d2c105bc33722e88e59da5f (patch) | |
tree | d812de676c6e2d056ac43abec89251aa36162165 /src/core/hle/function_wrappers.h | |
parent | Kernel: Add more infrastructure to support different memory layouts (diff) | |
download | yuzu-14eca982f4da2bfd4d2c105bc33722e88e59da5f.tar yuzu-14eca982f4da2bfd4d2c105bc33722e88e59da5f.tar.gz yuzu-14eca982f4da2bfd4d2c105bc33722e88e59da5f.tar.bz2 yuzu-14eca982f4da2bfd4d2c105bc33722e88e59da5f.tar.lz yuzu-14eca982f4da2bfd4d2c105bc33722e88e59da5f.tar.xz yuzu-14eca982f4da2bfd4d2c105bc33722e88e59da5f.tar.zst yuzu-14eca982f4da2bfd4d2c105bc33722e88e59da5f.zip |
Diffstat (limited to 'src/core/hle/function_wrappers.h')
-rw-r--r-- | src/core/hle/function_wrappers.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/hle/function_wrappers.h b/src/core/hle/function_wrappers.h index 1a0518926..5846a161b 100644 --- a/src/core/hle/function_wrappers.h +++ b/src/core/hle/function_wrappers.h @@ -172,6 +172,14 @@ template<ResultCode func(u32, s64, s64)> void Wrap() { FuncReturn(func(PARAM(0), param1, param2).raw); } +template<ResultCode func(s64*, Handle, u32)> void Wrap() { + s64 param_1 = 0; + u32 retval = func(¶m_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); +} + //////////////////////////////////////////////////////////////////////////////////////////////////// // Function wrappers that return type u32 |