summaryrefslogtreecommitdiffstats
path: root/src/common/console_listener.cpp
diff options
context:
space:
mode:
authorbunnei <ericbunnie@gmail.com>2014-05-30 05:03:03 +0200
committerbunnei <ericbunnie@gmail.com>2014-05-30 05:03:03 +0200
commit6fc62f8c93bd81f6207fcbdfe332b4e56c2aa2be (patch)
treed6a66ca0fdd3f6e2ff66cf1f88283107d525c0c7 /src/common/console_listener.cpp
parentcore: changed time delay before kernel reschedule to "approximate" a screen refresh (diff)
downloadyuzu-6fc62f8c93bd81f6207fcbdfe332b4e56c2aa2be.tar
yuzu-6fc62f8c93bd81f6207fcbdfe332b4e56c2aa2be.tar.gz
yuzu-6fc62f8c93bd81f6207fcbdfe332b4e56c2aa2be.tar.bz2
yuzu-6fc62f8c93bd81f6207fcbdfe332b4e56c2aa2be.tar.lz
yuzu-6fc62f8c93bd81f6207fcbdfe332b4e56c2aa2be.tar.xz
yuzu-6fc62f8c93bd81f6207fcbdfe332b4e56c2aa2be.tar.zst
yuzu-6fc62f8c93bd81f6207fcbdfe332b4e56c2aa2be.zip
Diffstat (limited to 'src/common/console_listener.cpp')
-rw-r--r--src/common/console_listener.cpp16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/common/console_listener.cpp b/src/common/console_listener.cpp
index b5f32d1bd..db48abbf6 100644
--- a/src/common/console_listener.cpp
+++ b/src/common/console_listener.cpp
@@ -259,14 +259,17 @@ void ConsoleListener::Log(LogTypes::LOG_LEVELS Level, const char *Text)
switch (Level)
{
+ case OS_LEVEL: // light yellow
+ Color = FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_INTENSITY;
+ break;
case NOTICE_LEVEL: // light green
Color = FOREGROUND_GREEN | FOREGROUND_INTENSITY;
break;
case ERROR_LEVEL: // light red
Color = FOREGROUND_RED | FOREGROUND_INTENSITY;
break;
- case WARNING_LEVEL: // light yellow
- Color = FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_INTENSITY;
+ case WARNING_LEVEL: // light purple
+ Color = FOREGROUND_RED | FOREGROUND_BLUE | FOREGROUND_INTENSITY;
break;
case INFO_LEVEL: // cyan
Color = FOREGROUND_GREEN | FOREGROUND_BLUE | FOREGROUND_INTENSITY;
@@ -278,15 +281,8 @@ void ConsoleListener::Log(LogTypes::LOG_LEVELS Level, const char *Text)
Color = FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE;
break;
}
- if (strlen(Text) > 10)
- {
- // First 10 chars white
- SetConsoleTextAttribute(hConsole, FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE | FOREGROUND_INTENSITY);
- WriteConsole(hConsole, Text, 10, &cCharsWritten, NULL);
- Text += 10;
- }
SetConsoleTextAttribute(hConsole, Color);
- WriteConsole(hConsole, Text, (DWORD)strlen(Text), &cCharsWritten, NULL);
+ printf(Text);
#else
char ColorAttr[16] = "";
char ResetAttr[16] = "";