diff options
| author | 2017-10-04 11:49:29 -0500 | |
|---|---|---|
| committer | 2017-10-04 12:30:33 -0500 | |
| commit | 0cfb231e002629172337c048e8cabc8c653e34e3 (patch) | |
| tree | 217133327f9817305d592cd4eee1d8bed53c8784 /src/core/hle/function_wrappers.h | |
| parent | SVC: Replace GetPointer usage with Read32 in WaitSynchronizationN. (diff) | |
| download | yuzu-0cfb231e002629172337c048e8cabc8c653e34e3.tar.gz yuzu-0cfb231e002629172337c048e8cabc8c653e34e3.tar.xz yuzu-0cfb231e002629172337c048e8cabc8c653e34e3.zip | |
SVC: Replace GetPointer usage with Read32 in ReplyAndReceive.
Diffstat (limited to 'src/core/hle/function_wrappers.h')
| -rw-r--r-- | src/core/hle/function_wrappers.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/hle/function_wrappers.h b/src/core/hle/function_wrappers.h index 17892d81c..cd500e83d 100644 --- a/src/core/hle/function_wrappers.h +++ b/src/core/hle/function_wrappers.h | |||
| @@ -69,11 +69,10 @@ void Wrap() { | |||
| 69 | FuncReturn(retval); | 69 | FuncReturn(retval); |
| 70 | } | 70 | } |
| 71 | 71 | ||
| 72 | template <ResultCode func(s32*, u32*, s32, u32)> | 72 | template <ResultCode func(s32*, VAddr, s32, u32)> |
| 73 | void Wrap() { | 73 | void Wrap() { |
| 74 | s32 param_1 = 0; | 74 | s32 param_1 = 0; |
| 75 | u32 retval = | 75 | u32 retval = func(¶m_1, PARAM(1), (s32)PARAM(2), PARAM(3)).raw; |
| 76 | func(¶m_1, (Kernel::Handle*)Memory::GetPointer(PARAM(1)), (s32)PARAM(2), PARAM(3)).raw; | ||
| 77 | 76 | ||
| 78 | Core::CPU().SetReg(1, (u32)param_1); | 77 | Core::CPU().SetReg(1, (u32)param_1); |
| 79 | FuncReturn(retval); | 78 | FuncReturn(retval); |