diff options
author | bunnei <bunneidev@gmail.com> | 2017-12-29 06:39:34 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2017-12-29 06:39:34 +0100 |
commit | 30e98fae3f9bc77419eb0b70f5fb3ed37959578e (patch) | |
tree | 7f78e88d9e405a84332fc5024dbef2e01cb2cc54 /src | |
parent | kernel: Fix implementation of ConvertSessionToDomain. (diff) | |
download | yuzu-30e98fae3f9bc77419eb0b70f5fb3ed37959578e.tar yuzu-30e98fae3f9bc77419eb0b70f5fb3ed37959578e.tar.gz yuzu-30e98fae3f9bc77419eb0b70f5fb3ed37959578e.tar.bz2 yuzu-30e98fae3f9bc77419eb0b70f5fb3ed37959578e.tar.lz yuzu-30e98fae3f9bc77419eb0b70f5fb3ed37959578e.tar.xz yuzu-30e98fae3f9bc77419eb0b70f5fb3ed37959578e.tar.zst yuzu-30e98fae3f9bc77419eb0b70f5fb3ed37959578e.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/core/hle/service/sm/controller.cpp | 19 | ||||
-rw-r--r-- | src/core/hle/service/sm/controller.h | 1 |
2 files changed, 11 insertions, 9 deletions
diff --git a/src/core/hle/service/sm/controller.cpp b/src/core/hle/service/sm/controller.cpp index 1d7ab3a1c..8d17e0ef6 100644 --- a/src/core/hle/service/sm/controller.cpp +++ b/src/core/hle/service/sm/controller.cpp @@ -21,19 +21,20 @@ void Controller::ConvertSessionToDomain(Kernel::HLERequestContext& ctx) { LOG_DEBUG(Service, "called, domain=%d", domain->GetObjectId()); } -/** - * Controller::QueryPointerBufferSize service function - * Inputs: - * 0: 0x00000003 - * Outputs: - * 0: ResultCode - * 2: Size of memory - */ +void Controller::DuplicateSession(Kernel::HLERequestContext& ctx) { + IPC::RequestBuilder rb{ctx, 1, 0, 1}; + rb.Push(RESULT_SUCCESS); + rb.PushObjects(ctx.ServerSession()); + + LOG_DEBUG(Service, "called"); +} + void Controller::QueryPointerBufferSize(Kernel::HLERequestContext& ctx) { IPC::RequestBuilder rb{ctx, 3}; rb.Push(RESULT_SUCCESS); rb.Skip(1, true); rb.Push<u32>(0x500); + LOG_WARNING(Service, "(STUBBED) called"); } @@ -41,7 +42,7 @@ Controller::Controller() : ServiceFramework("IpcController") { static const FunctionInfo functions[] = { {0x00000000, &Controller::ConvertSessionToDomain, "ConvertSessionToDomain"}, {0x00000001, nullptr, "ConvertDomainToSession"}, - {0x00000002, nullptr, "DuplicateSession"}, + {0x00000002, &Controller::DuplicateSession, "DuplicateSession"}, {0x00000003, &Controller::QueryPointerBufferSize, "QueryPointerBufferSize"}, {0x00000004, nullptr, "DuplicateSessionEx"}, }; diff --git a/src/core/hle/service/sm/controller.h b/src/core/hle/service/sm/controller.h index e68676ab6..9b0765ca7 100644 --- a/src/core/hle/service/sm/controller.h +++ b/src/core/hle/service/sm/controller.h @@ -16,6 +16,7 @@ public: private: void ConvertSessionToDomain(Kernel::HLERequestContext& ctx); + void DuplicateSession(Kernel::HLERequestContext& ctx); void QueryPointerBufferSize(Kernel::HLERequestContext& ctx); }; |