diff options
| author | 2018-01-08 18:17:12 -0500 | |
|---|---|---|
| committer | 2018-01-10 23:28:13 -0500 | |
| commit | fb73e8b72376a5b29c3042e7442ec30347693e14 (patch) | |
| tree | ba3b76d0d006a3be59299fd8427f738844ffa34e /src | |
| parent | NV: Implemented (with stubs) the vi:m service and some of its subservices. (diff) | |
| download | yuzu-fb73e8b72376a5b29c3042e7442ec30347693e14.tar.gz yuzu-fb73e8b72376a5b29c3042e7442ec30347693e14.tar.xz yuzu-fb73e8b72376a5b29c3042e7442ec30347693e14.zip | |
IPC: Allow passing arguments to the Interfaces when using PushIpcInterface
Diffstat (limited to 'src')
| -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 40e6c4897..0f1077d9e 100644 --- a/src/core/hle/ipc_helpers.h +++ b/src/core/hle/ipc_helpers.h | |||
| @@ -98,9 +98,9 @@ public: | |||
| 98 | PushRaw(data_payload_header); | 98 | PushRaw(data_payload_header); |
| 99 | } | 99 | } |
| 100 | 100 | ||
| 101 | template <class T> | 101 | template <class T, class... Args> |
| 102 | void PushIpcInterface() { | 102 | void PushIpcInterface(Args&&... args) { |
| 103 | context->AddDomainObject(std::make_shared<T>()); | 103 | context->AddDomainObject(std::make_shared<T>(std::forward<Args>(args)...)); |
| 104 | } | 104 | } |
| 105 | 105 | ||
| 106 | // Validate on destruction, as there shouldn't be any case where we don't want it | 106 | // Validate on destruction, as there shouldn't be any case where we don't want it |