Patch by Jerry:

- Fixed line endings
- Integ test for file transfer
- Fixed crashed problem when log info is larger than 2048 bytes
- Fixed compile error caused by std exception (by Feng ye)
- Fixed include path on Mac and linux (by Feng ye)
This commit is contained in:
Nick Bolton
2013-07-24 16:41:12 +00:00
parent c368013f13
commit 394ece004a
72 changed files with 3884 additions and 3127 deletions

View File

@@ -19,15 +19,15 @@
#include "winmmjoy.h"
#include <MMSystem.h>
#include <iostream>
#include <iostream>
#include <sstream>
#pragma comment(lib, "winmm.lib")
std::stringstream _logStream;
#define LOG(s) \
_logStream.str(""); \
_logStream << "winmmjoy: " << s << std::endl; \
std::stringstream _logStream;
#define LOG(s) \
_logStream.str(""); \
_logStream << "winmmjoy: " << s << std::endl; \
s_log( _logStream.str().c_str())
static bool s_running = true;
@@ -64,7 +64,7 @@ mainLoop(void* data)
const char* triggersEvent = "IPrimaryScreen::getGameDeviceTriggersEvent";
JOYINFOEX joyInfo;
ZeroMemory(&joyInfo, sizeof(joyInfo));
ZeroMemory(&joyInfo, sizeof(joyInfo));
joyInfo.dwSize = sizeof(joyInfo);
joyInfo.dwFlags = JOY_RETURNALL;