From 15e4eed7fa6e20fc4fed13960699670e94045467 Mon Sep 17 00:00:00 2001 From: Shawn Hoffman Date: Fri, 3 Jul 2009 22:10:16 +0000 Subject: [PATCH] fix real wiimote on windows...don't really know if it was working on other platforms...yes, sorta ugly git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3665 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_Wiimote/Src/wiimote_real.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Source/Plugins/Plugin_Wiimote/Src/wiimote_real.cpp b/Source/Plugins/Plugin_Wiimote/Src/wiimote_real.cpp index 808c7c07bc..a4df007d4c 100644 --- a/Source/Plugins/Plugin_Wiimote/Src/wiimote_real.cpp +++ b/Source/Plugins/Plugin_Wiimote/Src/wiimote_real.cpp @@ -147,7 +147,13 @@ void ReadData() { //INFO_LOG(CONSOLE, "Writing data to the Wiimote\n"); SEvent& rEvent = m_EventWriteQueue.front(); - wiiuse_io_write(m_pWiiMote, (byte*)rEvent.m_PayLoad, (int)m_EventWriteQueue.size()); + wiiuse_io_write(m_pWiiMote, (byte*)rEvent.m_PayLoad, +#ifdef _WIN32 // dunno if this is needed, sonic ran away when i found the bug :p + MAX_PAYLOAD +#else + (int)m_EventWriteQueue.size() +#endif + ); m_EventWriteQueue.pop(); #ifdef _WIN32