mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-08 07:50:01 +00:00
hle_ipc: Remove const from WriteBuffer size.
This commit is contained in:
parent
6fd19f05f1
commit
88bfec37ce
2 changed files with 2 additions and 2 deletions
|
@ -226,7 +226,7 @@ std::vector<u8> HLERequestContext::ReadBuffer() const {
|
||||||
return buffer;
|
return buffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t HLERequestContext::WriteBuffer(const void* buffer, const size_t size) const {
|
size_t HLERequestContext::WriteBuffer(const void* buffer, size_t size) const {
|
||||||
const bool is_buffer_b{BufferDescriptorB().size() && BufferDescriptorB()[0].Size()};
|
const bool is_buffer_b{BufferDescriptorB().size() && BufferDescriptorB()[0].Size()};
|
||||||
|
|
||||||
ASSERT_MSG(size <= GetWriteBufferSize(), "Size %d is too big", size);
|
ASSERT_MSG(size <= GetWriteBufferSize(), "Size %d is too big", size);
|
||||||
|
|
|
@ -147,7 +147,7 @@ public:
|
||||||
std::vector<u8> ReadBuffer() const;
|
std::vector<u8> ReadBuffer() const;
|
||||||
|
|
||||||
/// Helper function to write a buffer using the appropriate buffer descriptor
|
/// Helper function to write a buffer using the appropriate buffer descriptor
|
||||||
size_t WriteBuffer(const void* buffer, const size_t size) const;
|
size_t WriteBuffer(const void* buffer, size_t size) const;
|
||||||
|
|
||||||
/// Helper function to write a buffer using the appropriate buffer descriptor
|
/// Helper function to write a buffer using the appropriate buffer descriptor
|
||||||
size_t WriteBuffer(const std::vector<u8>& buffer) const;
|
size_t WriteBuffer(const std::vector<u8>& buffer) const;
|
||||||
|
|
Loading…
Reference in a new issue