MCPcopy Create free account
hub / github.com/ddnet/ddnet / Print

Method Print

src/engine/shared/console.cpp:362–374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

360}
361
362void CConsole::Print(int Level, const char *pFrom, const char *pStr, ColorRGBA PrintColor) const
363{
364 LEVEL LogLevel = IConsole::ToLogLevel(Level);
365 // if console colors are not enabled or if the color is pure white, use default terminal color
366 if(g_Config.m_ConsoleEnableColors && PrintColor != CONSOLE_DEFAULT_COLOR)
367 {
368 log_log_color(LogLevel, ColorToLogColor(PrintColor), pFrom, "%s", pStr);
369 }
370 else
371 {
372 log_log(LogLevel, pFrom, "%s", pStr);
373 }
374}
375
376void CConsole::SetTeeHistorianCommandCallback(FTeeHistorianCommandCallback pfnCallback, void *pUser)
377{

Callers 15

SqliteHandleErrorFunction · 0.45
LoadMethod · 0.45
CachePingMethod · 0.45
SetStateMethod · 0.45
GenerateTimeoutCodesMethod · 0.45
ConnectMethod · 0.45
DisconnectWithReasonMethod · 0.45
LoadMapMethod · 0.45
LoadMapSearchMethod · 0.45
ProcessServerInfoMethod · 0.45
ProcessServerPacketMethod · 0.45

Calls 3

log_log_colorFunction · 0.85
ColorToLogColorFunction · 0.85
log_logFunction · 0.85

Tested by

no test coverage detected