summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-01-09 00:17:12 +0100
committerbunnei <bunneidev@gmail.com>2018-01-11 05:28:13 +0100
commitfb73e8b72376a5b29c3042e7442ec30347693e14 (patch)
treeba3b76d0d006a3be59299fd8427f738844ffa34e
parentNV: Implemented (with stubs) the vi:m service and some of its subservices. (diff)
downloadyuzu-fb73e8b72376a5b29c3042e7442ec30347693e14.tar
yuzu-fb73e8b72376a5b29c3042e7442ec30347693e14.tar.gz
yuzu-fb73e8b72376a5b29c3042e7442ec30347693e14.tar.bz2
yuzu-fb73e8b72376a5b29c3042e7442ec30347693e14.tar.lz
yuzu-fb73e8b72376a5b29c3042e7442ec30347693e14.tar.xz
yuzu-fb73e8b72376a5b29c3042e7442ec30347693e14.tar.zst
yuzu-fb73e8b72376a5b29c3042e7442ec30347693e14.zip
-rw-r--r--src/core/hle/ipc_helpers.h6
1 files 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 <class T>
- void PushIpcInterface() {
- context->AddDomainObject(std::make_shared<T>());
+ template <class T, class... Args>
+ void PushIpcInterface(Args&&... args) {
+ context->AddDomainObject(std::make_shared<T>(std::forward<Args>(args)...));
}
// Validate on destruction, as there shouldn't be any case where we don't want it