Remove HOOKS->AdditionalLog.

Make LOG work without HOOKS being set up.
This commit is contained in:
Glenn Maynard
2003-10-02 01:09:15 +00:00
parent a934cece26
commit fa702635c1
+1 -3
View File
@@ -206,6 +206,7 @@ void RageLog::Write( int where, CString str)
if( where&WRITE_TO_INFO && m_fileInfo ) if( where&WRITE_TO_INFO && m_fileInfo )
fprintf(m_fileInfo, "%s\n", str.c_str() ); fprintf(m_fileInfo, "%s\n", str.c_str() );
if( HOOKS )
HOOKS->Log( str, where & WRITE_TO_INFO ); HOOKS->Log( str, where & WRITE_TO_INFO );
if( where & WRITE_TO_INFO ) if( where & WRITE_TO_INFO )
@@ -330,9 +331,6 @@ void RageLog::UpdateMappedLog()
g_AdditionalLogSize = min( sizeof(g_AdditionalLogStr), str.size()+1 ); g_AdditionalLogSize = min( sizeof(g_AdditionalLogStr), str.size()+1 );
memcpy( g_AdditionalLogStr, str.c_str(), g_AdditionalLogSize ); memcpy( g_AdditionalLogStr, str.c_str(), g_AdditionalLogSize );
g_AdditionalLogStr[ sizeof(g_AdditionalLogStr)-1 ] = 0; g_AdditionalLogStr[ sizeof(g_AdditionalLogStr)-1 ] = 0;
/* XXX: deprecated */
HOOKS->AdditionalLog(str);
} }
const char *RageLog::GetAdditionalLog() const char *RageLog::GetAdditionalLog()