mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Setup log callback sink for netconsole
This commit is contained in:
parent
8b60300dce
commit
08384346bf
@ -44,7 +44,7 @@ void Tier0_Init()
|
||||
#endif // !DEDICATED
|
||||
|
||||
// Setup logger callback sink.
|
||||
g_CoreMsgVCallback = EngineLoggerSink;
|
||||
g_CoreMsgVCallback = &EngineLoggerSink;
|
||||
|
||||
// Setup crash callback.
|
||||
g_CrashHandler->SetCrashCallback(&Crash_Callback);
|
||||
|
@ -6,6 +6,7 @@
|
||||
|
||||
#include "core/stdafx.h"
|
||||
#include "core/logdef.h"
|
||||
#include "core/logger.h"
|
||||
#include "tier0/utility.h"
|
||||
#include "tier1/NetAdr.h"
|
||||
#include "tier2/socketcreator.h"
|
||||
@ -40,6 +41,8 @@ CNetCon::~CNetCon(void)
|
||||
//-----------------------------------------------------------------------------
|
||||
bool CNetCon::Init(void)
|
||||
{
|
||||
g_CoreMsgVCallback = &EngineLoggerSink;
|
||||
|
||||
WSAData wsaData;
|
||||
const int nError = ::WSAStartup(MAKEWORD(2, 2), &wsaData);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user