summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2018-08-09 02:50:14 -0400
committerGravatar Lioncash2018-08-09 02:51:38 -0400
commitff5024ee2aaa5637e63e3f5fa92be85d227db4e2 (patch)
treea30a25b0c16196c1916d8eb4fa326ec3479bc3c0 /src
parentMerge pull request #982 from bunnei/stub-unk-63 (diff)
downloadyuzu-ff5024ee2aaa5637e63e3f5fa92be85d227db4e2.tar.gz
yuzu-ff5024ee2aaa5637e63e3f5fa92be85d227db4e2.tar.xz
yuzu-ff5024ee2aaa5637e63e3f5fa92be85d227db4e2.zip
hle_ipc: Make WriteToOutgoingCommandBuffer()'s reference parameter const
This function doesn't modify anything within the reference Thread instance.
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/kernel/hle_ipc.cpp2
-rw-r--r--src/core/hle/kernel/hle_ipc.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/hle_ipc.cpp b/src/core/hle/kernel/hle_ipc.cpp
index 5dd1b68d7..82a3fb5a8 100644
--- a/src/core/hle/kernel/hle_ipc.cpp
+++ b/src/core/hle/kernel/hle_ipc.cpp
@@ -201,7 +201,7 @@ ResultCode HLERequestContext::PopulateFromIncomingCommandBuffer(u32_le* src_cmdb
201 return RESULT_SUCCESS; 201 return RESULT_SUCCESS;
202} 202}
203 203
204ResultCode HLERequestContext::WriteToOutgoingCommandBuffer(Thread& thread) { 204ResultCode HLERequestContext::WriteToOutgoingCommandBuffer(const Thread& thread) {
205 std::array<u32, IPC::COMMAND_BUFFER_LENGTH> dst_cmdbuf; 205 std::array<u32, IPC::COMMAND_BUFFER_LENGTH> dst_cmdbuf;
206 Memory::ReadBlock(*thread.owner_process, thread.GetTLSAddress(), dst_cmdbuf.data(), 206 Memory::ReadBlock(*thread.owner_process, thread.GetTLSAddress(), dst_cmdbuf.data(),
207 dst_cmdbuf.size() * sizeof(u32)); 207 dst_cmdbuf.size() * sizeof(u32));
diff --git a/src/core/hle/kernel/hle_ipc.h b/src/core/hle/kernel/hle_ipc.h
index 9ce52db24..f0d07f1b6 100644
--- a/src/core/hle/kernel/hle_ipc.h
+++ b/src/core/hle/kernel/hle_ipc.h
@@ -132,7 +132,7 @@ public:
132 ResultCode PopulateFromIncomingCommandBuffer(u32_le* src_cmdbuf, Process& src_process, 132 ResultCode PopulateFromIncomingCommandBuffer(u32_le* src_cmdbuf, Process& src_process,
133 HandleTable& src_table); 133 HandleTable& src_table);
134 /// Writes data from this context back to the requesting process/thread. 134 /// Writes data from this context back to the requesting process/thread.
135 ResultCode WriteToOutgoingCommandBuffer(Thread& thread); 135 ResultCode WriteToOutgoingCommandBuffer(const Thread& thread);
136 136
137 u32_le GetCommand() const { 137 u32_le GetCommand() const {
138 return command; 138 return command;