From e37a2838867795c860fb633af53eb6f8fc234ad1 Mon Sep 17 00:00:00 2001 From: "fires.gc" Date: Wed, 5 Nov 2008 18:54:28 +0000 Subject: [PATCH] compile fix for windows git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1074 8ced0084-cf51-0410-be5f-012b33b47a6e --- .../Plugin_Wiimote_Test/Plugin_Wiimote_Test.vcproj | 12 ++++++------ .../Plugins/Plugin_Wiimote_Test/Src/wiimote_real.cpp | 12 ++---------- 2 files changed, 8 insertions(+), 16 deletions(-) diff --git a/Source/Plugins/Plugin_Wiimote_Test/Plugin_Wiimote_Test.vcproj b/Source/Plugins/Plugin_Wiimote_Test/Plugin_Wiimote_Test.vcproj index ca81032276..7adc496ce6 100644 --- a/Source/Plugins/Plugin_Wiimote_Test/Plugin_Wiimote_Test.vcproj +++ b/Source/Plugins/Plugin_Wiimote_Test/Plugin_Wiimote_Test.vcproj @@ -44,7 +44,7 @@ #include "common.h" @@ -25,14 +26,6 @@ #include "wiimote_hid.h" #include "wiimote_emu.h" - -#define WIIUSE_INTERNAL_H_INCLUDED -#define WIIUSE_COMPILE_LIB - -#include "wiiuse_012/wiiuse.h" -#include "wiiuse_012/io.h" - - extern SWiimoteInitialize g_WiimoteInitialize; extern void __Log(int log, const char *format, ...); @@ -98,10 +91,9 @@ namespace WiiMoteReal g_pCriticalSection->Leave(); - memset(m_pWiiMote->event_buf, 0, MAX_PAYLOAD); if (wiiuse_io_read(m_pWiiMote)) { - byte* pBuffer = m_pWiiMote->event_buf; + const byte* pBuffer = m_pWiiMote->event_buf; // check if we have a channel (connection) if so save the data... if (m_channelID > 0)