mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
************************************************************
* Merged Source Code from Development Trunk: Revision 4063 * ************************************************************ - Source Code is merged from: https://81.169.133.124/source/ja2/branches/Wanne/JA2%201.13%20MP - This will be the Source for the Beta 2011 Test git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@4064 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+9
-5
@@ -24,11 +24,9 @@
|
||||
#include <stdio.h>
|
||||
#include "Game Clock.h"
|
||||
#include "GameSettings.h"
|
||||
#include "sgp_logger.h"
|
||||
#endif
|
||||
|
||||
#include "VFS/vfs.h"
|
||||
#include "VFS/Tools/Log.h"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
UINT32 uiFont;
|
||||
@@ -1515,6 +1513,13 @@ void ClearTacticalMessageQueue( void )
|
||||
return;
|
||||
}
|
||||
|
||||
static struct DebugMessageLog {
|
||||
sgp::Logger_ID id;
|
||||
DebugMessageLog() {
|
||||
id = sgp::Logger::instance().createLogger();
|
||||
sgp::Logger::instance().connectFile(id, L"DebugMessage.txt", true, sgp::Logger::FLUSH_ON_ENDL);
|
||||
}
|
||||
} s_DebugMessageLog;
|
||||
void WriteMessageToFile( const STR16 pString )
|
||||
{
|
||||
#ifdef JA2BETAVERSION
|
||||
@@ -1531,8 +1536,7 @@ void WriteMessageToFile( const STR16 pString )
|
||||
fprintf( fp, "%S\n", pString );
|
||||
fclose( fp );
|
||||
#else
|
||||
static CLog& debugMessage = *CLog::create(L"DebugMessage.txt", true, CLog::FLUSH_IMMEDIATELY);
|
||||
debugMessage << pString << CLog::ENDL;
|
||||
SGP_LOG(s_DebugMessageLog.id, pString);
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user