mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-04-24 00:47:26 +00:00
Implement a new safer Limelog for Windows
This commit is contained in:
@@ -1,13 +1,22 @@
|
||||
#include "PlatformThreads.h"
|
||||
#include "Platform.h"
|
||||
|
||||
#if defined(LC_WINDOWS)
|
||||
WCHAR DbgBuf[512];
|
||||
#endif
|
||||
|
||||
int initializePlatformSockets(void);
|
||||
void cleanupPlatformSockets(void);
|
||||
|
||||
#if defined(LC_WINDOWS)
|
||||
void LimelogWindows(char* Format, ...) {
|
||||
va_list va;
|
||||
char buffer[1024];
|
||||
|
||||
va_start(va, Format);
|
||||
vsprintf(buffer, Format, va);
|
||||
va_end(va);
|
||||
|
||||
OutputDebugStringA(buffer);
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(LC_WINDOWS)
|
||||
PLT_MUTEX thread_list_lock;
|
||||
PLT_THREAD *thread_head;
|
||||
|
||||
Reference in New Issue
Block a user