diff options
| author | 2018-01-07 10:26:35 -0500 | |
|---|---|---|
| committer | 2018-01-07 17:12:03 -0500 | |
| commit | ad965501d06d2df81ef59f4c2e05e3425530b971 (patch) | |
| tree | d72bd959b1c460ff0ed6f7ae6a79ee329942c81b /src | |
| parent | IPC: Corrected some command header sizes in appletOE. (diff) | |
| download | yuzu-ad965501d06d2df81ef59f4c2e05e3425530b971.tar.gz yuzu-ad965501d06d2df81ef59f4c2e05e3425530b971.tar.xz yuzu-ad965501d06d2df81ef59f4c2e05e3425530b971.zip | |
IPC: Corrected some command headers in the IPC Controller interface.
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/sm/controller.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/hle/service/sm/controller.cpp b/src/core/hle/service/sm/controller.cpp index 7acc5c3b2..392a3b2fe 100644 --- a/src/core/hle/service/sm/controller.cpp +++ b/src/core/hle/service/sm/controller.cpp | |||
| @@ -15,14 +15,13 @@ void Controller::ConvertSessionToDomain(Kernel::HLERequestContext& ctx) { | |||
| 15 | 15 | ||
| 16 | IPC::RequestBuilder rb{ctx, 3}; | 16 | IPC::RequestBuilder rb{ctx, 3}; |
| 17 | rb.Push(RESULT_SUCCESS); | 17 | rb.Push(RESULT_SUCCESS); |
| 18 | rb.Skip(1, true); | 18 | rb.Push(static_cast<u32>(domain->request_handlers.size())); |
| 19 | rb.Push<u32>(static_cast<u32>(domain->request_handlers.size())); | ||
| 20 | 19 | ||
| 21 | LOG_DEBUG(Service, "called, domain=%d", domain->GetObjectId()); | 20 | LOG_DEBUG(Service, "called, domain=%d", domain->GetObjectId()); |
| 22 | } | 21 | } |
| 23 | 22 | ||
| 24 | void Controller::DuplicateSession(Kernel::HLERequestContext& ctx) { | 23 | void Controller::DuplicateSession(Kernel::HLERequestContext& ctx) { |
| 25 | IPC::RequestBuilder rb{ctx, 1, 0, 1}; | 24 | IPC::RequestBuilder rb{ctx, 2, 0, 1}; |
| 26 | rb.Push(RESULT_SUCCESS); | 25 | rb.Push(RESULT_SUCCESS); |
| 27 | rb.PushMoveObjects(ctx.ServerSession()); | 26 | rb.PushMoveObjects(ctx.ServerSession()); |
| 28 | 27 | ||
| @@ -32,7 +31,6 @@ void Controller::DuplicateSession(Kernel::HLERequestContext& ctx) { | |||
| 32 | void Controller::QueryPointerBufferSize(Kernel::HLERequestContext& ctx) { | 31 | void Controller::QueryPointerBufferSize(Kernel::HLERequestContext& ctx) { |
| 33 | IPC::RequestBuilder rb{ctx, 3}; | 32 | IPC::RequestBuilder rb{ctx, 3}; |
| 34 | rb.Push(RESULT_SUCCESS); | 33 | rb.Push(RESULT_SUCCESS); |
| 35 | rb.Skip(1, true); | ||
| 36 | rb.Push<u32>(0x500); | 34 | rb.Push<u32>(0x500); |
| 37 | 35 | ||
| 38 | LOG_WARNING(Service, "(STUBBED) called"); | 36 | LOG_WARNING(Service, "(STUBBED) called"); |