diff options
| author | 2017-10-04 12:11:55 -0500 | |
|---|---|---|
| committer | 2017-10-04 14:04:03 -0500 | |
| commit | 46fc7595b4f5f161ecd5ae21259c661c15ca46f3 (patch) | |
| tree | 4c6c0e988414c1635a7a9b4a6d4954157ebe1adb /src/core/hle/function_wrappers.h | |
| parent | SVC: Replace GetPointer usage with ReadCString in ConnectToPort. (diff) | |
| download | yuzu-46fc7595b4f5f161ecd5ae21259c661c15ca46f3.tar.gz yuzu-46fc7595b4f5f161ecd5ae21259c661c15ca46f3.tar.xz yuzu-46fc7595b4f5f161ecd5ae21259c661c15ca46f3.zip | |
SVC: Remove GetPointer usage in CreatePort.
Diffstat (limited to 'src/core/hle/function_wrappers.h')
| -rw-r--r-- | src/core/hle/function_wrappers.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/hle/function_wrappers.h b/src/core/hle/function_wrappers.h index a982b2b54..f93439f21 100644 --- a/src/core/hle/function_wrappers.h +++ b/src/core/hle/function_wrappers.h | |||
| @@ -206,13 +206,11 @@ void Wrap() { | |||
| 206 | FuncReturn(func(PARAM(0), PARAM(1)).raw); | 206 | FuncReturn(func(PARAM(0), PARAM(1)).raw); |
| 207 | } | 207 | } |
| 208 | 208 | ||
| 209 | template <ResultCode func(Kernel::Handle*, Kernel::Handle*, const char*, u32)> | 209 | template <ResultCode func(Kernel::Handle*, Kernel::Handle*, VAddr, u32)> |
| 210 | void Wrap() { | 210 | void Wrap() { |
| 211 | Kernel::Handle param_1 = 0; | 211 | Kernel::Handle param_1 = 0; |
| 212 | Kernel::Handle param_2 = 0; | 212 | Kernel::Handle param_2 = 0; |
| 213 | u32 retval = func(¶m_1, ¶m_2, | 213 | u32 retval = func(¶m_1, ¶m_2, PARAM(2), PARAM(3)).raw; |
| 214 | reinterpret_cast<const char*>(Memory::GetPointer(PARAM(2))), PARAM(3)) | ||
| 215 | .raw; | ||
| 216 | Core::CPU().SetReg(1, param_1); | 214 | Core::CPU().SetReg(1, param_1); |
| 217 | Core::CPU().SetReg(2, param_2); | 215 | Core::CPU().SetReg(2, param_2); |
| 218 | FuncReturn(retval); | 216 | FuncReturn(retval); |