From 47f3c5bc311c719eb8082d19dadfe319ee6075bf Mon Sep 17 00:00:00 2001 From: Sonicadvance1 Date: Thu, 19 Nov 2009 22:58:36 +0000 Subject: [PATCH] Forgot about this. Nobody wants WiiUse debugging on. Also, Real Wiimote works with this one, because I forgot to remove the -1! Huzza! git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4593 8ced0084-cf51-0410-be5f-012b33b47a6e --- Externals/WiiUseSrc/Src/wiiuse.h | 4 +++- Source/Plugins/Plugin_Wiimote/Src/wiimote_real.cpp | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Externals/WiiUseSrc/Src/wiiuse.h b/Externals/WiiUseSrc/Src/wiiuse.h index ca657dc374..5633fbed90 100644 --- a/Externals/WiiUseSrc/Src/wiiuse.h +++ b/Externals/WiiUseSrc/Src/wiiuse.h @@ -38,7 +38,9 @@ #ifndef WIIUSE_H_INCLUDED #define WIIUSE_H_INCLUDED -#define WITH_WIIUSE_DEBUG + +//#define WITH_WIIUSE_DEBUG + #ifdef _WIN32 /* windows */ #include diff --git a/Source/Plugins/Plugin_Wiimote/Src/wiimote_real.cpp b/Source/Plugins/Plugin_Wiimote/Src/wiimote_real.cpp index 957ecb622a..ac86ad0b5f 100644 --- a/Source/Plugins/Plugin_Wiimote/Src/wiimote_real.cpp +++ b/Source/Plugins/Plugin_Wiimote/Src/wiimote_real.cpp @@ -100,8 +100,8 @@ void SendData(u16 _channelID, const u8* _pData, u32 _Size) m_pCriticalSection->Enter(); { SEvent WriteEvent; - memcpy(WriteEvent.m_PayLoad, _pData, _Size); - WriteEvent._Size = _Size - 1; + memcpy(WriteEvent.m_PayLoad, _pData, _Size); + WriteEvent._Size = _Size; m_EventWriteQueue.push(WriteEvent); // Debugging