NetCon: fix color console regression

This is an old bug, since the net console is a console application, we should only call Console_ColorInit() here. Color is now fully optional (with -ansicolor) and works.
This commit is contained in:
Kawe Mazidjatari 2025-02-09 19:06:00 +01:00
parent dea3888973
commit d73ce9ed72

View File

@ -172,8 +172,10 @@ BOOL WINAPI CNetCon::CloseHandler(DWORD eventCode)
//-----------------------------------------------------------------------------
void CNetCon::TermSetup(const bool bAnsiColor)
{
if (bAnsiColor)
Console_ColorInit();
SpdLog_Init(bAnsiColor);
Console_Init(bAnsiColor);
// Handle ctrl+x or X close events, give the application time to shutdown
// properly and flush all logging buffers.