mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-03-18 19:32:41 +00:00
SI_DeviceAMBaseboard: Clean up RunBuffer.
Eliminated outer loop. Reduced memcpy'ing.
This commit is contained in:
parent
4fa93e402d
commit
b1000496a2
File diff suppressed because it is too large
Load Diff
@ -38,9 +38,6 @@ public:
|
||||
// run the SI Buffer
|
||||
int RunBuffer(u8* buffer, int request_length) override;
|
||||
|
||||
// Reply has to be delayed due a bug in the parser
|
||||
void SwapBuffers(u8* buffer, u32* buffer_length);
|
||||
|
||||
DataResponse GetData(u32& hi, u32& low) override;
|
||||
|
||||
void SendCommand(u32 command, u8 poll) override;
|
||||
@ -178,8 +175,9 @@ private:
|
||||
|
||||
static constexpr u32 RESPONSE_SIZE = SerialInterfaceManager::BUFFER_SIZE;
|
||||
|
||||
u8 m_last[2][RESPONSE_SIZE] = {};
|
||||
u32 m_lastptr[2] = {};
|
||||
// Reply has to be delayed due a bug in the parser
|
||||
std::array<std::array<u8, RESPONSE_SIZE>, 2> m_response_buffers{};
|
||||
u8 m_current_response_buffer_index = 0;
|
||||
|
||||
std::array<u16, 2> m_coin{};
|
||||
std::array<u32, 2> m_coin_pressed{};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user