mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-23 06:57:31 +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);
|
|
}
|