mirror of
https://github.com/debauchee/barrier.git
synced 2026-11-28 23:05:11 +08:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user