mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-12 08:37:56 -05:00
IPC: Add functions to read the input move/copy objects from an IPC request.
This commit is contained in:
@ -147,6 +147,18 @@ public:
|
||||
return domain != nullptr;
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
SharedPtr<T> GetCopyObject(size_t index) {
|
||||
ASSERT(index < copy_objects.size());
|
||||
return DynamicObjectCast(copy_objects[index]);
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
SharedPtr<T> GetMoveObject(size_t index) {
|
||||
ASSERT(index < move_objects.size());
|
||||
return DynamicObjectCast(move_objects[index]);
|
||||
}
|
||||
|
||||
void AddMoveObject(SharedPtr<Object> object) {
|
||||
move_objects.emplace_back(std::move(object));
|
||||
}
|
||||
|
Reference in New Issue
Block a user