yuzu-emu
/
yuzu-android
Archived
1
0
Fork 0

hle_ipc: Remove const from WriteBuffer size.

This commit is contained in:
bunnei 2018-02-14 14:21:10 -05:00
parent 6fd19f05f1
commit 88bfec37ce
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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;