From ab5fb4f3425d4457c191244b8742418487092be4 Mon Sep 17 00:00:00 2001 From: Pasha Bibko <156938226+PashaBibko@users.noreply.github.com> Date: Mon, 21 Jul 2025 18:05:46 +0100 Subject: [PATCH] See previous commit --- Common/IO.h | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/Common/IO.h b/Common/IO.h index 683c6b6..e15042e 100644 --- a/Common/IO.h +++ b/Common/IO.h @@ -11,30 +11,30 @@ namespace LXC::Util // Enum to translate to the Win32 code for the colors // enum Color : WORD { - DEFAULT = 0x07, + DEFAULT = 0x07, - BLACK = 0x00, - BLUE = 0x01, - GREEN = 0x02, - AQUA = 0x03, - RED = 0x04, - PURPLE = 0x05, - YELLOW = 0x06, - LIGHT_GRAY = 0x07, - LIGHT_BLUE = 0x09, - LIGHT_GREEN = 0x0a, - LIGHT_AQUA = 0x0b, - LIGHT_RED = 0x0c, - LIGHT_PURPLE = 0x0d, - LIGHT_YELLOW = 0x0e, - WHITE = 0x0f + BLACK = 0x00, + BLUE = 0x01, + GREEN = 0x02, + AQUA = 0x03, + RED = 0x04, + PURPLE = 0x05, + YELLOW = 0x06, + LIGHT_GRAY = 0x07, + LIGHT_BLUE = 0x09, + LIGHT_GREEN = 0x0a, + LIGHT_AQUA = 0x0b, + LIGHT_RED = 0x0c, + LIGHT_PURPLE = 0x0d, + LIGHT_YELLOW = 0x0e, + WHITE = 0x0f }; } namespace LXC::Internal { // Checks if a type can be outputted to std::ostream // - template concept Logable = requires(std::ostream& os, T t) + template concept Logable = requires(std::ostream & os, T t) { // I have no idea what this part does at all // { os << t } -> std::same_as; @@ -62,7 +62,7 @@ namespace LXC::Internal inline void WriteImpl(std::ostream& os, Args&&... args) { static HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE); - if constexpr(col != Util::Color::DEFAULT) + if constexpr (col != Util::Color::DEFAULT) SetConsoleTextAttribute(hConsole, static_cast(col)); (os << ... << std::forward(args));