From fa702635c18eed98a88e97e28a33a45e7a14457f Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 2 Oct 2003 01:09:15 +0000 Subject: [PATCH] Remove HOOKS->AdditionalLog. Make LOG work without HOOKS being set up. --- stepmania/src/RageLog.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/stepmania/src/RageLog.cpp b/stepmania/src/RageLog.cpp index 4967d57f10..593e4763e8 100644 --- a/stepmania/src/RageLog.cpp +++ b/stepmania/src/RageLog.cpp @@ -206,7 +206,8 @@ void RageLog::Write( int where, CString str) if( where&WRITE_TO_INFO && m_fileInfo ) fprintf(m_fileInfo, "%s\n", str.c_str() ); - HOOKS->Log(str, where & WRITE_TO_INFO); + if( HOOKS ) + HOOKS->Log( str, where & WRITE_TO_INFO ); if( where & WRITE_TO_INFO ) AddToInfo( str ); @@ -330,9 +331,6 @@ void RageLog::UpdateMappedLog() g_AdditionalLogSize = min( sizeof(g_AdditionalLogStr), str.size()+1 ); memcpy( g_AdditionalLogStr, str.c_str(), g_AdditionalLogSize ); g_AdditionalLogStr[ sizeof(g_AdditionalLogStr)-1 ] = 0; - - /* XXX: deprecated */ - HOOKS->AdditionalLog(str); } const char *RageLog::GetAdditionalLog()