************************************************************

* 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:
Wanne
2011-01-18 09:11:09 +00:00
parent 44e1646410
commit 91087ca8c0
469 changed files with 118108 additions and 24678 deletions
+11 -6
View File
@@ -6,8 +6,7 @@
#include "stdio.h"
#endif
#include "VFS/vfs.h"
#include "VFS/Tools/Log.h"
#include "sgp_logger.h"
#ifdef _ANIMSUBSYSTEM_DEBUG
@@ -57,6 +56,13 @@ void AiDbgMessage( CHAR8 *strMessage)
#endif
static struct LiveLog {
sgp::Logger_ID id;
LiveLog() {
id = sgp::Logger::instance().createLogger();
sgp::Logger::instance().connectFile(id, L"LiveLog.txt", false, sgp::Logger::FLUSH_ON_ENDL);
};
} s_LiveLog;
void LiveMessage( CHAR8 *strMessage)
{
@@ -69,8 +75,7 @@ void LiveMessage( CHAR8 *strMessage)
fclose(OutFile);
}
#else
static CLog& liveMsg = *CLog::create(L"LiveLog.txt",true);
liveMsg << strMessage << CLog::ENDL;
SGP_LOG(s_LiveLog.id, strMessage);
#endif
}
void MPDebugMsg( CHAR8 *strMessage)
@@ -84,7 +89,7 @@ void MPDebugMsg( CHAR8 *strMessage)
fclose(OutFile);
}
#else
static CLog& mpMsg = *CLog::create(L"MPDebug.txt", true);
mpMsg << strMessage << CLog::ENDL;
static vfs::Log& mpMsg = *vfs::Log::create(L"MPDebug.txt", true);
mpMsg << strMessage << vfs::Log::endl;
#endif
}