mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-24 00:35:40 +01:00
IPC: Allow passing arguments to the Interfaces when using PushIpcInterface
This commit is contained in:
parent
25f29c2f4f
commit
fb73e8b723
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user