| 116 | } |
| 117 | |
| 118 | static bool SetConsoleColor(uint32 fgColor, uint32 bgColor) |
| 119 | { |
| 120 | #ifdef _WIN32 |
| 121 | WORD attr = GetColorCode(fgColor) | (GetColorCode(bgColor) << 4); |
| 122 | SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), attr); |
| 123 | SetConsoleTextAttribute(GetStdHandle(STD_ERROR_HANDLE), attr); |
| 124 | return true; |
| 125 | #else |
| 126 | return false; |
| 127 | #endif |
| 128 | } |
| 129 | |
| 130 | |
| 131 | BootApp::BootApp() |
no test coverage detected