diff options
| author | 2018-01-17 14:41:43 -0500 | |
|---|---|---|
| committer | 2018-01-17 21:48:17 -0500 | |
| commit | 6a36ffb86c78832f5ea00701baae61a489d54a7d (patch) | |
| tree | 1c61a44dca0c5d8f30e425568edcdcde47a96738 /src | |
| parent | Merge pull request #83 from lioncash/pessimizing-move (diff) | |
| download | yuzu-6a36ffb86c78832f5ea00701baae61a489d54a7d.tar.gz yuzu-6a36ffb86c78832f5ea00701baae61a489d54a7d.tar.xz yuzu-6a36ffb86c78832f5ea00701baae61a489d54a7d.zip | |
controller: Use DuplicateSession for DuplicateSessionEx.
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/sm/controller.cpp | 8 | ||||
| -rw-r--r-- | src/core/hle/service/sm/controller.h | 1 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/core/hle/service/sm/controller.cpp b/src/core/hle/service/sm/controller.cpp index e8f5d0e4a..7b1c8ee37 100644 --- a/src/core/hle/service/sm/controller.cpp +++ b/src/core/hle/service/sm/controller.cpp | |||
| @@ -32,6 +32,12 @@ void Controller::DuplicateSession(Kernel::HLERequestContext& ctx) { | |||
| 32 | LOG_DEBUG(Service, "called"); | 32 | LOG_DEBUG(Service, "called"); |
| 33 | } | 33 | } |
| 34 | 34 | ||
| 35 | void Controller::DuplicateSessionEx(Kernel::HLERequestContext& ctx) { | ||
| 36 | DuplicateSession(ctx); | ||
| 37 | |||
| 38 | LOG_WARNING(Service, "(STUBBED) called, using DuplicateSession"); | ||
| 39 | } | ||
| 40 | |||
| 35 | void Controller::QueryPointerBufferSize(Kernel::HLERequestContext& ctx) { | 41 | void Controller::QueryPointerBufferSize(Kernel::HLERequestContext& ctx) { |
| 36 | IPC::RequestBuilder rb{ctx, 3}; | 42 | IPC::RequestBuilder rb{ctx, 3}; |
| 37 | rb.Push(RESULT_SUCCESS); | 43 | rb.Push(RESULT_SUCCESS); |
| @@ -46,7 +52,7 @@ Controller::Controller() : ServiceFramework("IpcController") { | |||
| 46 | {0x00000001, nullptr, "ConvertDomainToSession"}, | 52 | {0x00000001, nullptr, "ConvertDomainToSession"}, |
| 47 | {0x00000002, &Controller::DuplicateSession, "DuplicateSession"}, | 53 | {0x00000002, &Controller::DuplicateSession, "DuplicateSession"}, |
| 48 | {0x00000003, &Controller::QueryPointerBufferSize, "QueryPointerBufferSize"}, | 54 | {0x00000003, &Controller::QueryPointerBufferSize, "QueryPointerBufferSize"}, |
| 49 | {0x00000004, nullptr, "DuplicateSessionEx"}, | 55 | {0x00000004, &Controller::DuplicateSessionEx, "DuplicateSessionEx"}, |
| 50 | }; | 56 | }; |
| 51 | RegisterHandlers(functions); | 57 | RegisterHandlers(functions); |
| 52 | } | 58 | } |
diff --git a/src/core/hle/service/sm/controller.h b/src/core/hle/service/sm/controller.h index 0b873b492..7b4bc4b75 100644 --- a/src/core/hle/service/sm/controller.h +++ b/src/core/hle/service/sm/controller.h | |||
| @@ -17,6 +17,7 @@ public: | |||
| 17 | private: | 17 | private: |
| 18 | void ConvertSessionToDomain(Kernel::HLERequestContext& ctx); | 18 | void ConvertSessionToDomain(Kernel::HLERequestContext& ctx); |
| 19 | void DuplicateSession(Kernel::HLERequestContext& ctx); | 19 | void DuplicateSession(Kernel::HLERequestContext& ctx); |
| 20 | void DuplicateSessionEx(Kernel::HLERequestContext& ctx); | ||
| 20 | void QueryPointerBufferSize(Kernel::HLERequestContext& ctx); | 21 | void QueryPointerBufferSize(Kernel::HLERequestContext& ctx); |
| 21 | }; | 22 | }; |
| 22 | 23 | ||