2525#include < MessageListClass.h>
2626#include < Utilities/Macro.h>
2727
28-
2928char Debug::StringBuffer[0x1000 ];
3029
3130void Debug::Log (const char * pFormat, ...)
31+ {
32+ va_list args;
33+ Debug::LogGame (" [Spawner] " );
34+ Debug::LogGame (pFormat, args);
35+ va_end (args);
36+ }
37+
38+ void Debug::LogGame (const char * pFormat, ...)
3239{
3340 JMP_STD (0x4068E0 );
3441}
@@ -38,7 +45,7 @@ void Debug::LogAndMessage(const char* pFormat, ...)
3845 va_list args;
3946 va_start (args, pFormat);
4047 vsprintf_s (StringBuffer, pFormat, args);
41- Log (" %s" , StringBuffer);
48+ Debug:: Log (" %s" , StringBuffer);
4249 va_end (args);
4350 wchar_t buffer[0x1000 ];
4451 CRT::mbstowcs (buffer, StringBuffer, 0x1000 );
@@ -48,7 +55,7 @@ void Debug::LogAndMessage(const char* pFormat, ...)
4855void Debug::LogWithVArgs (const char * pFormat, va_list args)
4956{
5057 vsprintf_s (StringBuffer, pFormat, args);
51- Log (" %s" , StringBuffer);
58+ Debug:: Log (" %s" , StringBuffer);
5259}
5360
5461void Debug::INIParseFailed (const char * section, const char * flag, const char * value, const char * Message)
@@ -65,7 +72,7 @@ void Debug::FatalErrorAndExit(const char* pFormat, ...)
6572{
6673 va_list args;
6774 va_start (args, pFormat);
68- LogWithVArgs (pFormat, args);
75+ Debug:: LogWithVArgs (pFormat, args);
6976 va_end (args);
7077 FatalExit (static_cast <int >(ExitCode::Undefined));
7178}
@@ -74,7 +81,7 @@ void Debug::FatalErrorAndExit(ExitCode nExitCode, const char* pFormat, ...)
7481{
7582 va_list args;
7683 va_start (args, pFormat);
77- LogWithVArgs (pFormat, args);
84+ Debug:: LogWithVArgs (pFormat, args);
7885 va_end (args);
7986 FatalExit (static_cast <int >(nExitCode));
8087}
0 commit comments