mirror of
https://github.com/rehlds/rehlds.git
synced 2025-01-06 03:55:32 +03:00
Fix crash Con_DPrintf at linux
Added missing EXT_FUNC for Con_DPrintf
This commit is contained in:
parent
24ec5bd85b
commit
c62f8a982c
@ -1387,12 +1387,11 @@ void Con_SafePrintf(const char *fmt, ...)
|
|||||||
/* <8e00b> ../engine/sys_dll.c:2459 */
|
/* <8e00b> ../engine/sys_dll.c:2459 */
|
||||||
#if defined(REHLDS_FIXES) && defined(REHLDS_FLIGHT_REC)
|
#if defined(REHLDS_FIXES) && defined(REHLDS_FLIGHT_REC)
|
||||||
// Always print debug logs to the flight recorder
|
// Always print debug logs to the flight recorder
|
||||||
void Con_DPrintf(const char *fmt, ...)
|
void EXT_FUNC Con_DPrintf(const char *fmt, ...)
|
||||||
{
|
{
|
||||||
va_list argptr;
|
|
||||||
|
|
||||||
va_start(argptr, fmt);
|
|
||||||
char Dest[4096];
|
char Dest[4096];
|
||||||
|
va_list argptr;
|
||||||
|
va_start(argptr, fmt);
|
||||||
Q_vsnprintf(Dest, sizeof(Dest), fmt, argptr);
|
Q_vsnprintf(Dest, sizeof(Dest), fmt, argptr);
|
||||||
va_end(argptr);
|
va_end(argptr);
|
||||||
|
|
||||||
@ -1405,7 +1404,7 @@ void Con_DPrintf(const char *fmt, ...)
|
|||||||
if (con_debuglog)
|
if (con_debuglog)
|
||||||
Con_DebugLog("qconsole.log", "%s", Dest);
|
Con_DebugLog("qconsole.log", "%s", Dest);
|
||||||
#else
|
#else
|
||||||
vfprintf(stdout, "%s", Dest);
|
vfprintf(stdout, fmt, argptr);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
#endif // _WIN32
|
#endif // _WIN32
|
||||||
}
|
}
|
||||||
@ -1434,4 +1433,5 @@ void EXT_FUNC Con_DPrintf(const char *fmt, ...)
|
|||||||
}
|
}
|
||||||
va_end(argptr);
|
va_end(argptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // defined(REHLDS_FIXES) and defined(REHLDS_FLIGHT_REC)
|
#endif // defined(REHLDS_FIXES) and defined(REHLDS_FLIGHT_REC)
|
||||||
|
Loading…
Reference in New Issue
Block a user