diff options
author | Subv <subv2112@gmail.com> | 2018-01-07 15:22:20 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-01-07 23:11:51 +0100 |
commit | 32847d8b860af1210612027680eea1cbf9765b51 (patch) | |
tree | 234cabf0b424e2863540f704752e2838c914d491 /src/core/hle/kernel/hle_ipc.h | |
parent | IPC: Don't attempt to read the command buffer if it holds a Close request. (diff) | |
download | yuzu-32847d8b860af1210612027680eea1cbf9765b51.tar yuzu-32847d8b860af1210612027680eea1cbf9765b51.tar.gz yuzu-32847d8b860af1210612027680eea1cbf9765b51.tar.bz2 yuzu-32847d8b860af1210612027680eea1cbf9765b51.tar.lz yuzu-32847d8b860af1210612027680eea1cbf9765b51.tar.xz yuzu-32847d8b860af1210612027680eea1cbf9765b51.tar.zst yuzu-32847d8b860af1210612027680eea1cbf9765b51.zip |
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)); } |