From a7c643e1460d48560a9871587b67ef798eb9010a Mon Sep 17 00:00:00 2001 From: death2droid Date: Tue, 1 Sep 2009 13:17:23 +0000 Subject: [PATCH] Fix the build by reading something i removed incorrectly. I see no point in the thing tho still. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4139 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Common/Src/ConsoleListener.cpp | 2 +- Source/Core/Common/Src/Log.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/Core/Common/Src/ConsoleListener.cpp b/Source/Core/Common/Src/ConsoleListener.cpp index 3346d361b4..b5ce181d25 100644 --- a/Source/Core/Common/Src/ConsoleListener.cpp +++ b/Source/Core/Common/Src/ConsoleListener.cpp @@ -286,7 +286,7 @@ void ConsoleListener::Log(LogTypes::LOG_LEVELS Level, const char *Text) Color = FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE; break; } - if (strlen(Text) > 10) + if (Level != CUSTOM_LEVEL && 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 e33b7fd318..16c3ee9ed9 100644 --- a/Source/Core/Common/Src/Log.h +++ b/Source/Core/Common/Src/Log.h @@ -81,7 +81,8 @@ enum LOG_LEVELS { LERROR = ERROR_LEVEL, LWARNING = WARNING_LEVEL, LINFO = INFO_LEVEL, - LDEBUG = DEBUG_LEVEL + LDEBUG = DEBUG_LEVEL, + LCUSTOM = CUSTOM_LEVEL }; } // namespace