the whole game
This commit is contained in:
39
project/lib_projects/raknet/jni/RaknetSources/PacketOutputWindowLogger.cpp
Executable file
39
project/lib_projects/raknet/jni/RaknetSources/PacketOutputWindowLogger.cpp
Executable file
@@ -0,0 +1,39 @@
|
||||
#include "NativeFeatureIncludes.h"
|
||||
#if _RAKNET_SUPPORT_PacketLogger==1
|
||||
|
||||
#if defined(UNICODE)
|
||||
#include "RakWString.h"
|
||||
#endif
|
||||
|
||||
#include "PacketOutputWindowLogger.h"
|
||||
#include "RakString.h"
|
||||
#if defined(_WIN32) && !defined(X360__)
|
||||
#include "WindowsIncludes.h"
|
||||
#endif
|
||||
|
||||
using namespace RakNet;
|
||||
|
||||
PacketOutputWindowLogger::PacketOutputWindowLogger()
|
||||
{
|
||||
}
|
||||
PacketOutputWindowLogger::~PacketOutputWindowLogger()
|
||||
{
|
||||
}
|
||||
void PacketOutputWindowLogger::WriteLog(const char *str)
|
||||
{
|
||||
#if defined(_WIN32) && !defined(X360__)
|
||||
|
||||
#if defined(UNICODE)
|
||||
RakNet::RakWString str2 = str;
|
||||
str2+="\n";
|
||||
OutputDebugString(str2.C_String());
|
||||
#else
|
||||
RakNet::RakString str2 = str;
|
||||
str2+="\n";
|
||||
OutputDebugString(str2.C_String());
|
||||
#endif
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif // _RAKNET_SUPPORT_*
|
||||
Reference in New Issue
Block a user