diff options
author | Liam <byteslice@airmail.cc> | 2023-04-30 03:16:09 +0200 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2023-04-30 03:52:26 +0200 |
commit | 1b5c87ab6aff8c53e4c27e916b282cce8073f118 (patch) | |
tree | 30ec292c07baeb9144677779a39681e8d62a0eed /src/core/hle/service/sm | |
parent | Merge pull request #10082 from FernandoS27/the-testers-really-love-chocolate (diff) | |
download | yuzu-1b5c87ab6aff8c53e4c27e916b282cce8073f118.tar yuzu-1b5c87ab6aff8c53e4c27e916b282cce8073f118.tar.gz yuzu-1b5c87ab6aff8c53e4c27e916b282cce8073f118.tar.bz2 yuzu-1b5c87ab6aff8c53e4c27e916b282cce8073f118.tar.lz yuzu-1b5c87ab6aff8c53e4c27e916b282cce8073f118.tar.xz yuzu-1b5c87ab6aff8c53e4c27e916b282cce8073f118.tar.zst yuzu-1b5c87ab6aff8c53e4c27e916b282cce8073f118.zip |
Diffstat (limited to 'src/core/hle/service/sm')
-rw-r--r-- | src/core/hle/service/sm/sm.cpp | 3 | ||||
-rw-r--r-- | src/core/hle/service/sm/sm_controller.cpp | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/core/hle/service/sm/sm.cpp b/src/core/hle/service/sm/sm.cpp index c45be5726..1608fa24c 100644 --- a/src/core/hle/service/sm/sm.cpp +++ b/src/core/hle/service/sm/sm.cpp @@ -64,6 +64,9 @@ Result ServiceManager::RegisterService(std::string name, u32 max_sessions, auto* port = Kernel::KPort::Create(kernel); port->Initialize(ServerSessionCountMax, false, 0); + // Register the port. + Kernel::KPort::Register(kernel, port); + service_ports.emplace(name, port); registered_services.emplace(name, handler); if (deferral_event) { diff --git a/src/core/hle/service/sm/sm_controller.cpp b/src/core/hle/service/sm/sm_controller.cpp index 419c1df2b..7dce28fe0 100644 --- a/src/core/hle/service/sm/sm_controller.cpp +++ b/src/core/hle/service/sm/sm_controller.cpp @@ -49,6 +49,9 @@ void Controller::CloneCurrentObject(HLERequestContext& ctx) { // Commit the session reservation. session_reservation.Commit(); + // Register the session. + Kernel::KSession::Register(system.Kernel(), session); + // Register with server manager. session_manager->GetServerManager().RegisterSession(&session->GetServerSession(), session_manager); |