summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-01-15 21:31:10 +0100
committerbunnei <bunneidev@gmail.com>2018-01-17 00:42:08 +0100
commit5bc14e791a8b4260dbf130d2e8724e394db4205c (patch)
treeb5a6e4a6fe2c3d15ce3a7facba12ec62dd16fc38 /src/core/hle/kernel
parentMerge pull request #52 from ogniK5377/fsp (diff)
downloadyuzu-5bc14e791a8b4260dbf130d2e8724e394db4205c.tar
yuzu-5bc14e791a8b4260dbf130d2e8724e394db4205c.tar.gz
yuzu-5bc14e791a8b4260dbf130d2e8724e394db4205c.tar.bz2
yuzu-5bc14e791a8b4260dbf130d2e8724e394db4205c.tar.lz
yuzu-5bc14e791a8b4260dbf130d2e8724e394db4205c.tar.xz
yuzu-5bc14e791a8b4260dbf130d2e8724e394db4205c.tar.zst
yuzu-5bc14e791a8b4260dbf130d2e8724e394db4205c.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/hle_ipc.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/hle/kernel/hle_ipc.h b/src/core/hle/kernel/hle_ipc.h
index 164c6db69..6dceb766d 100644
--- a/src/core/hle/kernel/hle_ipc.h
+++ b/src/core/hle/kernel/hle_ipc.h
@@ -175,6 +175,14 @@ public:
domain_objects.emplace_back(std::move(object));
}
+ /// Clears the list of objects so that no lingering objects are written accidentally to the
+ /// response buffer.
+ void ClearIncomingObjects() {
+ move_objects.clear();
+ copy_objects.clear();
+ domain_objects.clear();
+ }
+
private:
std::array<u32, IPC::COMMAND_BUFFER_LENGTH> cmd_buf;
SharedPtr<Kernel::Domain> domain;