diff options
author | bunnei <bunneidev@gmail.com> | 2018-01-24 00:03:09 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-01-25 04:18:56 +0100 |
commit | 27bad0598a3ddce0417388c3945368200150d413 (patch) | |
tree | 8afc27be2a01d80cc592a698632b2fbcae71d8a5 /src/core/hle/ipc_helpers.h | |
parent | hle: Remove Domain and SyncObject kernel objects. (diff) | |
download | yuzu-27bad0598a3ddce0417388c3945368200150d413.tar yuzu-27bad0598a3ddce0417388c3945368200150d413.tar.gz yuzu-27bad0598a3ddce0417388c3945368200150d413.tar.bz2 yuzu-27bad0598a3ddce0417388c3945368200150d413.tar.lz yuzu-27bad0598a3ddce0417388c3945368200150d413.tar.xz yuzu-27bad0598a3ddce0417388c3945368200150d413.tar.zst yuzu-27bad0598a3ddce0417388c3945368200150d413.zip |
Diffstat (limited to 'src/core/hle/ipc_helpers.h')
-rw-r--r-- | src/core/hle/ipc_helpers.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/ipc_helpers.h b/src/core/hle/ipc_helpers.h index e5c26e079..d62731678 100644 --- a/src/core/hle/ipc_helpers.h +++ b/src/core/hle/ipc_helpers.h @@ -76,7 +76,7 @@ public: // The entire size of the raw data section in u32 units, including the 16 bytes of mandatory // padding. u32 raw_data_size = sizeof(IPC::DataPayloadHeader) / 4 + 4 + normal_params_size; - if (context.IsDomain()) { + if (context.Session()->IsDomain()) { raw_data_size += sizeof(DomainMessageHeader) / 4 + num_domain_objects; } else { // If we're not in a domain, turn the domain object parameters into move handles. @@ -100,7 +100,7 @@ public: AlignWithPadding(); - if (context.IsDomain()) { + if (context.Session()->IsDomain()) { IPC::DomainMessageHeader domain_header{}; domain_header.num_objects = num_domain_objects; PushRaw(domain_header); @@ -114,7 +114,7 @@ public: template <class T, class... Args> void PushIpcInterface(Args&&... args) { auto iface = std::make_shared<T>(std::forward<Args>(args)...); - if (context->IsDomain()) { + if (context->Session()->IsDomain()) { context->AddDomainObject(std::move(iface)); } else { auto sessions = Kernel::ServerSession::CreateSessionPair(iface->GetServiceName()); |