mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
bcdbedc0be
* Add RakNet source files to the VS project
20 lines
444 B
C++
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);
|
|
}
|