diff options
author | Lioncash <mathew1800@gmail.com> | 2020-11-08 21:49:45 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2020-11-08 21:58:11 +0100 |
commit | da7be67dafc90c84529304cfef57dfa5f9291017 (patch) | |
tree | 14fb629c96e2c091be2c800f13dc8aff67eeb79f /src/core/hle/ipc_helpers.h | |
parent | Merge pull request #4903 from bunnei/remove-gpu-integrity (diff) | |
download | yuzu-da7be67dafc90c84529304cfef57dfa5f9291017.tar yuzu-da7be67dafc90c84529304cfef57dfa5f9291017.tar.gz yuzu-da7be67dafc90c84529304cfef57dfa5f9291017.tar.bz2 yuzu-da7be67dafc90c84529304cfef57dfa5f9291017.tar.lz yuzu-da7be67dafc90c84529304cfef57dfa5f9291017.tar.xz yuzu-da7be67dafc90c84529304cfef57dfa5f9291017.tar.zst yuzu-da7be67dafc90c84529304cfef57dfa5f9291017.zip |
Diffstat (limited to 'src/core/hle/ipc_helpers.h')
-rw-r--r-- | src/core/hle/ipc_helpers.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/core/hle/ipc_helpers.h b/src/core/hle/ipc_helpers.h index 1c354037d..d57776ce9 100644 --- a/src/core/hle/ipc_helpers.h +++ b/src/core/hle/ipc_helpers.h @@ -12,7 +12,6 @@ #include <utility> #include "common/assert.h" #include "common/common_types.h" -#include "core/core.h" #include "core/hle/ipc.h" #include "core/hle/kernel/client_port.h" #include "core/hle/kernel/client_session.h" @@ -73,14 +72,12 @@ public: AlwaysMoveHandles = 1, }; - explicit ResponseBuilder(u32* command_buffer) : RequestHelperBase(command_buffer) {} - explicit ResponseBuilder(Kernel::HLERequestContext& context, u32 normal_params_size, u32 num_handles_to_copy = 0, u32 num_objects_to_move = 0, Flags flags = Flags::None) - : RequestHelperBase(context), normal_params_size(normal_params_size), - num_handles_to_copy(num_handles_to_copy), num_objects_to_move(num_objects_to_move) { + num_handles_to_copy(num_handles_to_copy), + num_objects_to_move(num_objects_to_move), kernel{context.kernel} { memset(cmdbuf, 0, sizeof(u32) * IPC::COMMAND_BUFFER_LENGTH); @@ -140,7 +137,6 @@ public: if (context->Session()->IsDomain()) { context->AddDomainObject(std::move(iface)); } else { - auto& kernel = Core::System::GetInstance().Kernel(); auto [client, server] = Kernel::Session::Create(kernel, iface->GetServiceName()); context->AddMoveObject(std::move(client)); iface->ClientConnected(std::move(server)); @@ -214,6 +210,7 @@ private: u32 num_handles_to_copy{}; u32 num_objects_to_move{}; ///< Domain objects or move handles, context dependent std::ptrdiff_t datapayload_index{}; + Kernel::KernelCore& kernel; }; /// Push /// |