diff options
| author | nakeee <nakeee@gmail.com> | 2009-09-02 07:59:06 +0000 |
|---|---|---|
| committer | nakeee <nakeee@gmail.com> | 2009-09-02 07:59:06 +0000 |
| commit | b2533a5ef28ba01005a7c70d99c8a520004bcd07 (patch) | |
| tree | 25f5b8dbb12b3b0e64a59fd7c6ff5419d846c8c6 /Source/Core/Common | |
| parent | 7343382f80462ef5ec42d2dd222742d4adade414 (diff) | |
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
Diffstat (limited to 'Source/Core/Common')
| -rw-r--r-- | Source/Core/Common/Src/ConsoleListener.cpp | 2 | ||||
| -rw-r--r-- | Source/Core/Common/Src/Log.h | 2 |
2 files changed, 1 insertions, 3 deletions
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 |
