From 7618b5237d4b4f525e3db96bc70e488210da373d Mon Sep 17 00:00:00 2001 From: bunnei Date: Thu, 28 Dec 2017 15:29:52 -0500 Subject: svc: Implement SetHeapSize. --- src/core/hle/function_wrappers.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/core/hle/function_wrappers.h') diff --git a/src/core/hle/function_wrappers.h b/src/core/hle/function_wrappers.h index abc2b96a8..528208178 100644 --- a/src/core/hle/function_wrappers.h +++ b/src/core/hle/function_wrappers.h @@ -42,9 +42,17 @@ void Wrap() { FuncReturn(func(PARAM(0), PARAM(1)).raw); } -template +template void Wrap() { - FuncReturn(func(PARAM(0), PARAM(1), PARAM(2)).raw); + FuncReturn(func(PARAM(1), PARAM(2), (s64)PARAM(3)).raw); +} + +template +void Wrap() { + u64 param_1 = 0; + u32 retval = func(¶m_1, PARAM(1)).raw; + Core::CPU().SetReg(1, param_1); + FuncReturn(retval); } template -- cgit v1.2.3