summaryrefslogtreecommitdiffstats
path: root/src/core/hle/function_wrappers.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-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 3e886fdba..abc2b96a8 100644
--- a/src/core/hle/function_wrappers.h
+++ b/src/core/hle/function_wrappers.h
@@ -161,6 +161,14 @@ void Wrap() {
FuncReturn(retval);
}
+template <ResultCode func(u32*, Kernel::Handle)>
+void Wrap() {
+ u32 param_1 = 0;
+ u32 retval = func(&param_1, PARAM(1)).raw;
+ Core::CPU().SetReg(1, param_1);
+ FuncReturn(retval);
+}
+
template <ResultCode func(u32)>
void Wrap() {
FuncReturn(func(PARAM(0)).raw);