From fb73e8b72376a5b29c3042e7442ec30347693e14 Mon Sep 17 00:00:00 2001 From: Subv Date: Mon, 8 Jan 2018 18:17:12 -0500 Subject: [PATCH] IPC: Allow passing arguments to the Interfaces when using PushIpcInterface --- src/core/hle/ipc_helpers.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/hle/ipc_helpers.h b/src/core/hle/ipc_helpers.h index 40e6c4897..0f1077d9e 100644 --- a/src/core/hle/ipc_helpers.h +++ b/src/core/hle/ipc_helpers.h @@ -98,9 +98,9 @@ public: PushRaw(data_payload_header); } - template - void PushIpcInterface() { - context->AddDomainObject(std::make_shared()); + template + void PushIpcInterface(Args&&... args) { + context->AddDomainObject(std::make_shared(std::forward(args)...)); } // Validate on destruction, as there shouldn't be any case where we don't want it