SA-MP/raknet/PacketConsoleLogger.cpp
RD42 bcdbedc0be Revert RakNet source files back to the original v2.518 state
* Add RakNet source files to the VS project
2024-08-16 23:33:48 +08:00

20 lines
444 B
C++

#include "PacketConsoleLogger.h"
#include "LogCommandParser.h"
PacketConsoleLogger::PacketConsoleLogger()
{
logCommandParser=0;
}
void PacketConsoleLogger::SetLogCommandParser(LogCommandParser *lcp)
{
logCommandParser=lcp;
if (logCommandParser)
logCommandParser->AddChannel("PacketConsoleLogger");
}
void PacketConsoleLogger::WriteLog(const char *str)
{
if (logCommandParser)
logCommandParser->WriteLog("PacketConsoleLogger", str);
}