From b2533a5ef28ba01005a7c70d99c8a520004bcd07 Mon Sep 17 00:00:00 2001 From: nakeee Date: Wed, 2 Sep 2009 07:59:06 +0000 Subject: Fixed various warning fixes and potencial POD/crash bugs git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4156 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Common/Src/ConsoleListener.cpp | 2 +- Source/Core/Common/Src/Log.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'Source/Core/Common') diff --git a/Source/Core/Common/Src/ConsoleListener.cpp b/Source/Core/Common/Src/ConsoleListener.cpp index fbe4c9fdaf..a976555282 100644 --- a/Source/Core/Common/Src/ConsoleListener.cpp +++ b/Source/Core/Common/Src/ConsoleListener.cpp @@ -288,7 +288,7 @@ void ConsoleListener::Log(LogTypes::LOG_LEVELS Level, const char *Text) Color = FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE; break; } - if (Level != CUSTOM_LEVEL && strlen(Text) > 10) + if (strlen(Text) > 10) { // First 10 chars white SetConsoleTextAttribute(hConsole, FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE | FOREGROUND_INTENSITY); diff --git a/Source/Core/Common/Src/Log.h b/Source/Core/Common/Src/Log.h index 16c3ee9ed9..a24f7e65f0 100644 --- a/Source/Core/Common/Src/Log.h +++ b/Source/Core/Common/Src/Log.h @@ -23,7 +23,6 @@ #define WARNING_LEVEL 3 // Something is suspicious. #define INFO_LEVEL 4 // General information. #define DEBUG_LEVEL 5 // Detailed debugging - might make things slow. -#define CUSTOM_LEVEL 6 // Custom level, no text formatting namespace LogTypes { @@ -82,7 +81,6 @@ enum LOG_LEVELS { LWARNING = WARNING_LEVEL, LINFO = INFO_LEVEL, LDEBUG = DEBUG_LEVEL, - LCUSTOM = CUSTOM_LEVEL }; } // namespace -- cgit v1.2.3