diff options
author | bunnei <bunneidev@gmail.com> | 2016-05-13 21:33:44 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2016-05-13 21:33:44 +0200 |
commit | 18b517e236b7f6710567e57dab6a7c5329db948f (patch) | |
tree | 5257e9ace394fa6062768c27b95e807df87c61b2 /src/core/hle/function_wrappers.h | |
parent | Merge pull request #1788 from MerryMage/ext-soundtouch (diff) | |
parent | HLE/Applets: Give each applet its own block of heap memory, and use that when creating the framebuffer shared memory block. (diff) | |
download | yuzu-18b517e236b7f6710567e57dab6a7c5329db948f.tar yuzu-18b517e236b7f6710567e57dab6a7c5329db948f.tar.gz yuzu-18b517e236b7f6710567e57dab6a7c5329db948f.tar.bz2 yuzu-18b517e236b7f6710567e57dab6a7c5329db948f.tar.lz yuzu-18b517e236b7f6710567e57dab6a7c5329db948f.tar.xz yuzu-18b517e236b7f6710567e57dab6a7c5329db948f.tar.zst yuzu-18b517e236b7f6710567e57dab6a7c5329db948f.zip |
Diffstat (limited to 'src/core/hle/function_wrappers.h')
-rw-r--r-- | src/core/hle/function_wrappers.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/function_wrappers.h b/src/core/hle/function_wrappers.h index 4d718b681..bf7f875b6 100644 --- a/src/core/hle/function_wrappers.h +++ b/src/core/hle/function_wrappers.h @@ -170,7 +170,8 @@ template<ResultCode func(s64*, u32, s32)> void Wrap() { template<ResultCode func(u32*, u32, u32, u32, u32)> void Wrap() { u32 param_1 = 0; - u32 retval = func(¶m_1, PARAM(1), PARAM(2), PARAM(3), PARAM(4)).raw; + // The last parameter is passed in R0 instead of R4 + u32 retval = func(¶m_1, PARAM(1), PARAM(2), PARAM(3), PARAM(0)).raw; Core::g_app_core->SetReg(1, param_1); FuncReturn(retval); } |