mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-11 00:38:18 -05:00
IPC: Allow passing arguments to the Interfaces when using PushIpcInterface
This commit is contained in:
@ -98,9 +98,9 @@ public:
|
|||||||
PushRaw(data_payload_header);
|
PushRaw(data_payload_header);
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class T>
|
template <class T, class... Args>
|
||||||
void PushIpcInterface() {
|
void PushIpcInterface(Args&&... args) {
|
||||||
context->AddDomainObject(std::make_shared<T>());
|
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
|
// Validate on destruction, as there shouldn't be any case where we don't want it
|
||||||
|
Reference in New Issue
Block a user