summaryrefslogtreecommitdiff
path: root/src/core/hle/service/sm
diff options
context:
space:
mode:
authorGravatar Liam2022-10-26 17:32:14 -0400
committerGravatar Liam2022-10-31 17:45:45 -0400
commit7aa91c8d9ceb21e631e52c7ac30e47af2ec5a089 (patch)
tree4ee0df95a65d98dd7e6b519c9aab13ab963a8c18 /src/core/hle/service/sm
parentservice_thread: convert to map for session management (diff)
downloadyuzu-7aa91c8d9ceb21e631e52c7ac30e47af2ec5a089.tar.gz
yuzu-7aa91c8d9ceb21e631e52c7ac30e47af2ec5a089.tar.xz
yuzu-7aa91c8d9ceb21e631e52c7ac30e47af2ec5a089.zip
k_server_session: add SendReplyHLE
Diffstat (limited to 'src/core/hle/service/sm')
-rw-r--r--src/core/hle/service/sm/sm_controller.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/core/hle/service/sm/sm_controller.cpp b/src/core/hle/service/sm/sm_controller.cpp
index 940c33478..69e0fe808 100644
--- a/src/core/hle/service/sm/sm_controller.cpp
+++ b/src/core/hle/service/sm/sm_controller.cpp
@@ -33,16 +33,13 @@ void Controller::CloneCurrentObject(Kernel::HLERequestContext& ctx) {
33 // FIXME: this is duplicated from the SVC, it should just call it instead 33 // FIXME: this is duplicated from the SVC, it should just call it instead
34 // once this is a proper process 34 // once this is a proper process
35 35
36 // Declare the session we're going to allocate.
37 Kernel::KSession* session;
38
39 // Reserve a new session from the process resource limit. 36 // Reserve a new session from the process resource limit.
40 Kernel::KScopedResourceReservation session_reservation(&process, 37 Kernel::KScopedResourceReservation session_reservation(&process,
41 Kernel::LimitableResource::Sessions); 38 Kernel::LimitableResource::Sessions);
42 ASSERT(session_reservation.Succeeded()); 39 ASSERT(session_reservation.Succeeded());
43 40
44 // Create the session. 41 // Create the session.
45 session = Kernel::KSession::Create(system.Kernel()); 42 Kernel::KSession* session = Kernel::KSession::Create(system.Kernel());
46 ASSERT(session != nullptr); 43 ASSERT(session != nullptr);
47 44
48 // Initialize the session. 45 // Initialize the session.