Compile NetMsg out entirely for dedicated

This commit is contained in:
Kawe Mazidjatari 2023-04-03 14:34:46 +02:00
parent 87831050e9
commit 8809f17504
2 changed files with 4 additions and 2 deletions

View File

@ -427,15 +427,15 @@ void DevMsg(eDLL_T context, const char* fmt, ...)
// Input : context -
// *fmt - ... -
//-----------------------------------------------------------------------------
#ifndef DEDICATED
void NetMsg(LogType_t logType, eDLL_T context, const char* uptime, const char* fmt, ...)
{
#ifndef DEDICATED
va_list args;
va_start(args, fmt);
CoreMsgV(logType, LogLevel_t::LEVEL_NOTIFY, context, "netconsole", fmt, args, NO_ERROR, uptime);
va_end(args);
#endif // !DEDICATED
}
#endif // !DEDICATED
//-----------------------------------------------------------------------------
// Purpose: Print engine and SDK warnings

View File

@ -115,7 +115,9 @@ void CoreMsg(LogType_t logType, LogLevel_t logLevel, eDLL_T context,
// These functions do not return.
PLATFORM_INTERFACE void DevMsg(eDLL_T context, const char* fmt, ...) FMTFUNCTION(2, 3);
#ifndef DEDICATED
PLATFORM_INTERFACE void NetMsg(LogType_t logType, eDLL_T context, const char* uptime, const char* fmt, ...) FMTFUNCTION(4, 5);
#endif // !DEDICATED
PLATFORM_INTERFACE void Warning(eDLL_T context, const char* fmt, ...) FMTFUNCTION(2, 3);
PLATFORM_INTERFACE void Error(eDLL_T context, const UINT code, const char* fmt, ...) FMTFUNCTION(3, 4);