//----------------------------------------------------------------------------- // Purpose: //----------------------------------------------------------------------------- void CC_DebugHistory_Dump( void ) { if ( engine->Cmd_Argc() < 2 ) { Warning("Incorrect parameters. Format: <category id>\n"); return; } if ( GetDebugHistory() ) { int iCategory = atoi(engine->Cmd_Argv( 1 )); GetDebugHistory()->DumpDebugHistory( iCategory ); } }
//----------------------------------------------------------------------------- // Purpose: //----------------------------------------------------------------------------- void CC_DebugHistory_Dump( const CCommand &args ) { if ( args.ArgC() < 2 ) { Warning("Incorrect parameters. Format: <category id>\n"); return; } if ( GetDebugHistory() ) { int iCategory = atoi(args[ 1 ]); GetDebugHistory()->DumpDebugHistory( iCategory ); } }
//----------------------------------------------------------------------------- // Purpose: //----------------------------------------------------------------------------- void AddDebugHistoryLine( int iCategory, const char *pszLine ) { #ifdef DISABLE_DEBUG_HISTORY return; #else if ( g_pGameRules && g_pGameRules->IsMultiplayer() ) return; if ( !GetDebugHistory() ) { Warning("Failed to find or create an env_debughistory.\n" ); return; } GetDebugHistory()->AddDebugHistoryLine( iCategory, pszLine ); #endif }