mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +00:00
Implement EQEmuLogSys::GetConsoleColorFromCategory in ProcessConsoleMessage
This commit is contained in:
parent
2f74f07be7
commit
b546848313
@ -159,12 +159,7 @@ void EQEmuLogSys::ProcessConsoleMessage(uint16 log_category, const std::string m
|
||||
info.FontWeight = FW_NORMAL;
|
||||
wcscpy(info.FaceName, L"Lucida Console");
|
||||
SetCurrentConsoleFontEx(console_handle, NULL, &info);
|
||||
//if (LogColors[log_type]){
|
||||
// SetConsoleTextAttribute(console_handle, LogColors[log_type]);
|
||||
//}
|
||||
//else{
|
||||
SetConsoleTextAttribute(console_handle, Console::Color::White);
|
||||
//}
|
||||
SetConsoleTextAttribute(console_handle, EQEmuLogSys::GetConsoleColorFromCategory(log_category));
|
||||
#endif
|
||||
|
||||
std::cout << message << "\n";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user