mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 07:09:48 -06:00
Probably worthless commit that may fix wiimote netplay buffer problems.
This commit is contained in:
@ -575,10 +575,10 @@ bool NetPlayClient::WiimoteUpdate(int _number, u8* data, u8 size)
|
|||||||
{
|
{
|
||||||
static u8 previousSize = 0;
|
static u8 previousSize = 0;
|
||||||
|
|
||||||
if (previousSize != size && m_wiimote_buffer[in_game_num].Size() > 0)
|
while (previousSize != size && m_wiimote_buffer[in_game_num].Size() > 0)
|
||||||
{
|
{
|
||||||
// Reporting mode changed, so previous buffer is no good.
|
// Reporting mode changed, so previous buffer is no good.
|
||||||
m_wiimote_buffer[in_game_num].Clear();
|
m_wiimote_buffer[in_game_num].Pop();
|
||||||
}
|
}
|
||||||
|
|
||||||
nw.data.assign(data, data + size);
|
nw.data.assign(data, data + size);
|
||||||
@ -618,7 +618,7 @@ bool NetPlayClient::WiimoteUpdate(int _number, u8* data, u8 size)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
++tries;
|
++tries;
|
||||||
if (tries > m_target_buffer_size)
|
if (tries > m_target_buffer_size +1)
|
||||||
break;
|
break;
|
||||||
} while (nw.size != size);
|
} while (nw.size != size);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user