diff options
author | bunnei <bunneidev@gmail.com> | 2018-05-01 05:24:31 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-05-02 03:57:44 +0200 |
commit | fadab1d5f365c11f0b4c33e74b0d297756f2f3f9 (patch) | |
tree | d8add81daca8bc72d5344549528ce4f3953f250f /src/core/hle/ipc_helpers.h | |
parent | Merge pull request #429 from Subv/ioctl_corruption (diff) | |
download | yuzu-fadab1d5f365c11f0b4c33e74b0d297756f2f3f9.tar yuzu-fadab1d5f365c11f0b4c33e74b0d297756f2f3f9.tar.gz yuzu-fadab1d5f365c11f0b4c33e74b0d297756f2f3f9.tar.bz2 yuzu-fadab1d5f365c11f0b4c33e74b0d297756f2f3f9.tar.lz yuzu-fadab1d5f365c11f0b4c33e74b0d297756f2f3f9.tar.xz yuzu-fadab1d5f365c11f0b4c33e74b0d297756f2f3f9.tar.zst yuzu-fadab1d5f365c11f0b4c33e74b0d297756f2f3f9.zip |
Diffstat (limited to 'src/core/hle/ipc_helpers.h')
-rw-r--r-- | src/core/hle/ipc_helpers.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/hle/ipc_helpers.h b/src/core/hle/ipc_helpers.h index 3f87c4297..24605a273 100644 --- a/src/core/hle/ipc_helpers.h +++ b/src/core/hle/ipc_helpers.h @@ -298,6 +298,13 @@ public: template <typename T> Kernel::SharedPtr<T> GetCopyObject(size_t index); + + template <class T> + std::shared_ptr<T> PopIpcInterface() { + ASSERT(context->Session()->IsDomain()); + ASSERT(context->GetDomainMessageHeader()->input_object_count > 0); + return context->GetDomainRequestHandler<T>(Pop<u32>() - 1); + } }; /// Pop /// |