diff options
Diffstat (limited to 'src/core/hle/kernel/hle_ipc.h')
-rw-r--r-- | src/core/hle/kernel/hle_ipc.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/core/hle/kernel/hle_ipc.h b/src/core/hle/kernel/hle_ipc.h index 48730a2b2..266fcf9c1 100644 --- a/src/core/hle/kernel/hle_ipc.h +++ b/src/core/hle/kernel/hle_ipc.h @@ -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)); } |