diff options
author | archshift <admin@archshift.com> | 2014-04-26 18:21:49 +0200 |
---|---|---|
committer | archshift <admin@archshift.com> | 2014-04-26 18:25:30 +0200 |
commit | aef2c8ec628aa2522364da1333bc5158e55ac6a2 (patch) | |
tree | da83f950fb33b4910d006499930b98fb231e2fd7 /src/MCLogger.cpp | |
parent | Fixed mobs that don't naturally spawn. (diff) | |
download | cuberite-aef2c8ec628aa2522364da1333bc5158e55ac6a2.tar cuberite-aef2c8ec628aa2522364da1333bc5158e55ac6a2.tar.gz cuberite-aef2c8ec628aa2522364da1333bc5158e55ac6a2.tar.bz2 cuberite-aef2c8ec628aa2522364da1333bc5158e55ac6a2.tar.lz cuberite-aef2c8ec628aa2522364da1333bc5158e55ac6a2.tar.xz cuberite-aef2c8ec628aa2522364da1333bc5158e55ac6a2.tar.zst cuberite-aef2c8ec628aa2522364da1333bc5158e55ac6a2.zip |
Diffstat (limited to 'src/MCLogger.cpp')
-rw-r--r-- | src/MCLogger.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/MCLogger.cpp b/src/MCLogger.cpp index ca47b29db..d56c1a5a8 100644 --- a/src/MCLogger.cpp +++ b/src/MCLogger.cpp @@ -33,7 +33,7 @@ cMCLogger * cMCLogger::GetInstance(void) cMCLogger::cMCLogger(void): - g_ShouldColorOutput(false) + m_ShouldColorOutput(false) { AString FileName; Printf(FileName, "LOG_%d.txt", (int)time(NULL)); @@ -76,15 +76,15 @@ void cMCLogger::InitLog(const AString & a_FileName) #ifdef _WIN32 // See whether we are writing to a console the default console attrib: - g_ShouldColorOutput = (_isatty(_fileno(stdin)) != 0); - if (g_ShouldColorOutput) + m_ShouldColorOutput = (_isatty(_fileno(stdin)) != 0); + if (m_ShouldColorOutput) { CONSOLE_SCREEN_BUFFER_INFO sbi; GetConsoleScreenBufferInfo(g_Console, &sbi); - g_DefaultConsoleAttrib = sbi.wAttributes; + m_DefaultConsoleAttrib = sbi.wAttributes; } #elif defined (__linux) && !defined(ANDROID_NDK) - g_ShouldColorOutput = isatty(fileno(stdout)); + m_ShouldColorOutput = isatty(fileno(stdout)); // TODO: Check if the terminal supports colors, somehow? #endif } @@ -178,7 +178,7 @@ void cMCLogger::Error(const char * a_Format, va_list a_ArgList) void cMCLogger::SetColor(eColorScheme a_Scheme) { - if (!g_ShouldColorOutput) + if (!m_ShouldColorOutput) { return; } @@ -211,7 +211,7 @@ void cMCLogger::SetColor(eColorScheme a_Scheme) void cMCLogger::ResetColor(void) { - if (!g_ShouldColorOutput) + if (!m_ShouldColorOutput) { return; } |