mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-04 15:19:09 +00:00
Probably worthless commit that may fix wiimote netplay buffer problems.
This commit is contained in:
parent
6d67ea2fda
commit
c7025989f8
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue