diff options
| author | LC <mathew1800@gmail.com> | 2021-01-28 10:52:44 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-28 10:52:44 -0500 |
| commit | 9f6290d2078424dce4206cd29a5709492c11c5f9 (patch) | |
| tree | 488dc7decfcb459e5335fba8f3e9146b2f62bfa5 /src/core/hle/kernel/hle_ipc.h | |
| parent | 0e125dfd43113251e1ea1164c47c2f003bd61a8c (diff) | |
| parent | ae6b3bdfbffd5c234be9529616468f377a0b6844 (diff) | |
Merge pull request #5840 from Morph1984/prepo-fix
prepo: Fix BufferDescriptorX invalid buffer index errors and add New variants of SaveReport
Diffstat (limited to 'src/core/hle/kernel/hle_ipc.h')
| -rw-r--r-- | src/core/hle/kernel/hle_ipc.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/hle/kernel/hle_ipc.h b/src/core/hle/kernel/hle_ipc.h index b112e1ebd..698f607e6 100644 --- a/src/core/hle/kernel/hle_ipc.h +++ b/src/core/hle/kernel/hle_ipc.h @@ -207,6 +207,12 @@ public: /// Helper function to get the size of the output buffer std::size_t GetWriteBufferSize(std::size_t buffer_index = 0) const; + /// Helper function to test whether the input buffer at buffer_index can be read + bool CanReadBuffer(std::size_t buffer_index = 0) const; + + /// Helper function to test whether the output buffer at buffer_index can be written + bool CanWriteBuffer(std::size_t buffer_index = 0) const; + template <typename T> std::shared_ptr<T> GetCopyObject(std::size_t index) { return DynamicObjectCast<T>(copy_objects.at(index)); |
