From b0200219dde748aff89c370e62ec1d2f11ec4cc4 Mon Sep 17 00:00:00 2001 From: Rachel Bryk Date: Sat, 28 Sep 2013 23:39:29 -0400 Subject: [PATCH] Add literally a million blank inputs in netplay when a wiimote changes reporting mode, just to make nsmbw sync. --- Source/Core/Core/Src/NetPlayClient.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/Core/Core/Src/NetPlayClient.cpp b/Source/Core/Core/Src/NetPlayClient.cpp index 74fb4ce7c7..7e71584c35 100644 --- a/Source/Core/Core/Src/NetPlayClient.cpp +++ b/Source/Core/Core/Src/NetPlayClient.cpp @@ -649,7 +649,6 @@ bool NetPlayClient::WiimoteUpdate(int _number, u8* data, const u8 size) // in game mapping for this local wiimote unsigned int in_game_num = LocalWiimoteToInGameWiimote(_number); - // does this local wiimote map in game? if (in_game_num < 4) { @@ -673,6 +672,9 @@ bool NetPlayClient::WiimoteUpdate(int _number, u8* data, const u8 size) } nw.resize(size, 0); + m_wiimote_buffer[in_game_num].Push(nw); + m_wiimote_buffer[in_game_num].Push(nw); + m_wiimote_buffer[in_game_num].Push(nw); m_wiimote_buffer[in_game_num].Push(nw); m_wiimote_buffer[in_game_num].Push(nw); m_wiimote_buffer[in_game_num].Push(nw); @@ -696,6 +698,9 @@ bool NetPlayClient::WiimoteUpdate(int _number, u8* data, const u8 size) nw.resize(size, 0); m_wiimote_buffer[_number].Push(nw); m_wiimote_buffer[_number].Push(nw); + m_wiimote_buffer[_number].Push(nw); + m_wiimote_buffer[_number].Push(nw); + m_wiimote_buffer[_number].Push(nw); } // We should have used a blank input last time, so now we just need to pop through the old buffer, until we reach a good input