diff --git a/public/tier0/dbg.h b/public/tier0/dbg.h index 5b58e1b8..31f0019e 100644 --- a/public/tier0/dbg.h +++ b/public/tier0/dbg.h @@ -1,4 +1,4 @@ -//===== Copyright © 1996-2005, Valve Corporation, All rights reserved. ========// +//===== Copyright � 1996-2005, Valve Corporation, All rights reserved. ========// // // Purpose: // @@ -252,7 +252,7 @@ inline void Error( const tchar* pMsg, ... ) va_start(params, pMsg); V_vsnprintf(szBuffer, sizeof(szBuffer), pMsg, params); va_end(params); - LoggingSystem_LogDirect(LOG_GENERAL, LS_ERROR, szBuffer); + Plat_FatalErrorFunc( "%s", szBuffer ); } // @TODO: these callstack spew functions are currently disabled in the new logging system. Need to add support for these if desired. diff --git a/public/tier0/platform.h b/public/tier0/platform.h index dd303ef5..79ffec93 100644 --- a/public/tier0/platform.h +++ b/public/tier0/platform.h @@ -1129,6 +1129,8 @@ PLATFORM_INTERFACE void Plat_ExitProcess( int nCode ); PLATFORM_INTERFACE bool Plat_ShouldCollectMiniDumpsForFatalErrors(); +PLATFORM_INTERFACE void Plat_FatalErrorFunc( const tchar* pMsg, ... ) FMTFUNCTION( 1, 2 ); + // b/w compatibility #define Sys_FloatTime Plat_FloatTime