diff options
author | Subv <subv2112@gmail.com> | 2018-01-09 17:53:50 +0100 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2018-01-09 17:53:50 +0100 |
commit | 8d9250fa70af00b5f40a58b0729588616bef94fa (patch) | |
tree | 956a699769296b21a52f0fe0209ab0b969d0ec2c /src/core/hle/kernel/svc_wrap.h | |
parent | kernel: Rename Semaphore to ConditionVariable. (diff) | |
download | yuzu-8d9250fa70af00b5f40a58b0729588616bef94fa.tar yuzu-8d9250fa70af00b5f40a58b0729588616bef94fa.tar.gz yuzu-8d9250fa70af00b5f40a58b0729588616bef94fa.tar.bz2 yuzu-8d9250fa70af00b5f40a58b0729588616bef94fa.tar.lz yuzu-8d9250fa70af00b5f40a58b0729588616bef94fa.tar.xz yuzu-8d9250fa70af00b5f40a58b0729588616bef94fa.tar.zst yuzu-8d9250fa70af00b5f40a58b0729588616bef94fa.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/kernel/svc_wrap.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/hle/kernel/svc_wrap.h b/src/core/hle/kernel/svc_wrap.h index bffa2f7f8..16c834cf3 100644 --- a/src/core/hle/kernel/svc_wrap.h +++ b/src/core/hle/kernel/svc_wrap.h @@ -80,9 +80,12 @@ void SvcWrap() { FuncReturn(func(PARAM(0), PARAM(1), PARAM(2)).raw); } -template <ResultCode func(u64, u64, s64)> +template <ResultCode func(u32*, u64, u64, s64)> void SvcWrap() { - FuncReturn(func(PARAM(1), PARAM(2), (s64)PARAM(3)).raw); + u32 param_1 = 0; + ResultCode retval = func(¶m_1, PARAM(1), (u32)(PARAM(2) & 0xFFFFFFFF), (s64)PARAM(3)); + Core::CPU().SetReg(1, param_1); + FuncReturn(retval.raw); } template <ResultCode func(u64, u64, u32, s64)> |