diff options
| author | 2022-10-15 21:57:40 -0400 | |
|---|---|---|
| committer | 2022-10-19 16:31:12 -0400 | |
| commit | fca195b4fb1255c20579fd25d8565f0ae4759b6e (patch) | |
| tree | 4e4d2820993e2956e9dc272fb1c03b840ed4da75 /src/core/hle/service/sm | |
| parent | kernel: add KSessionRequest (diff) | |
| download | yuzu-fca195b4fb1255c20579fd25d8565f0ae4759b6e.tar.gz yuzu-fca195b4fb1255c20579fd25d8565f0ae4759b6e.tar.xz yuzu-fca195b4fb1255c20579fd25d8565f0ae4759b6e.zip | |
kernel: remove most SessionRequestManager handling from KServerSession
Diffstat (limited to 'src/core/hle/service/sm')
| -rw-r--r-- | src/core/hle/service/sm/sm_controller.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/hle/service/sm/sm_controller.cpp b/src/core/hle/service/sm/sm_controller.cpp index 2a4bd64ab..273f79568 100644 --- a/src/core/hle/service/sm/sm_controller.cpp +++ b/src/core/hle/service/sm/sm_controller.cpp | |||
| @@ -15,9 +15,10 @@ | |||
| 15 | namespace Service::SM { | 15 | namespace Service::SM { |
| 16 | 16 | ||
| 17 | void Controller::ConvertCurrentObjectToDomain(Kernel::HLERequestContext& ctx) { | 17 | void Controller::ConvertCurrentObjectToDomain(Kernel::HLERequestContext& ctx) { |
| 18 | ASSERT_MSG(!ctx.Session()->IsDomain(), "Session is already a domain"); | 18 | ASSERT_MSG(!ctx.Session()->GetSessionRequestManager()->IsDomain(), |
| 19 | "Session is already a domain"); | ||
| 19 | LOG_DEBUG(Service, "called, server_session={}", ctx.Session()->GetId()); | 20 | LOG_DEBUG(Service, "called, server_session={}", ctx.Session()->GetId()); |
| 20 | ctx.Session()->ConvertToDomain(); | 21 | ctx.Session()->GetSessionRequestManager()->ConvertToDomainOnRequestEnd(); |
| 21 | 22 | ||
| 22 | IPC::ResponseBuilder rb{ctx, 3}; | 23 | IPC::ResponseBuilder rb{ctx, 3}; |
| 23 | rb.Push(ResultSuccess); | 24 | rb.Push(ResultSuccess); |