diff options
| author | 2017-06-23 22:34:02 -0700 | |
|---|---|---|
| committer | 2017-06-23 22:34:02 -0700 | |
| commit | cf15b651ed475adcd53c72edd83e8b80f1f5fbee (patch) | |
| tree | d4f4be2c9ed527b9f4df3a74e686a2722e5e05be /src/core/hle/function_wrappers.h | |
| parent | Merge pull request #2798 from yuriks/svc-create-session (diff) | |
| parent | Kernel: Implement AcceptSession SVC (diff) | |
| download | yuzu-cf15b651ed475adcd53c72edd83e8b80f1f5fbee.tar.gz yuzu-cf15b651ed475adcd53c72edd83e8b80f1f5fbee.tar.xz yuzu-cf15b651ed475adcd53c72edd83e8b80f1f5fbee.zip | |
Merge pull request #2801 from yuriks/session-svcs
Implement CreateSessionToPort and AcceptSession; fix CreatePort
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 b19b64509..410bb87ea 100644 --- a/src/core/hle/function_wrappers.h +++ b/src/core/hle/function_wrappers.h | |||
| @@ -226,9 +226,8 @@ void Wrap() { | |||
| 226 | u32 retval = func(¶m_1, ¶m_2, | 226 | u32 retval = func(¶m_1, ¶m_2, |
| 227 | reinterpret_cast<const char*>(Memory::GetPointer(PARAM(2))), PARAM(3)) | 227 | reinterpret_cast<const char*>(Memory::GetPointer(PARAM(2))), PARAM(3)) |
| 228 | .raw; | 228 | .raw; |
| 229 | // The first out parameter is moved into R2 and the second is moved into R1. | 229 | Core::CPU().SetReg(1, param_1); |
| 230 | Core::CPU().SetReg(1, param_2); | 230 | Core::CPU().SetReg(2, param_2); |
| 231 | Core::CPU().SetReg(2, param_1); | ||
| 232 | FuncReturn(retval); | 231 | FuncReturn(retval); |
| 233 | } | 232 | } |
| 234 | 233 | ||