2
0
mirror of https://github.com/rehlds/rehlds.git synced 2025-07-21 12:46:32 +03:00

added "[ReHLDS %version%]" to win32 title

example: "[ReHLDS 3.15.0.784] Console"
This commit is contained in:
STAM 2025-07-16 14:36:58 +03:00
parent ae2639d3df
commit 5887e77dc7
No known key found for this signature in database
GPG Key ID: 711526C6938897F1

View File

@ -84,7 +84,10 @@ bool CTextConsoleWin32::Init(IBaseSystem *system)
if (!AllocConsole())
m_System = system;
SetTitle(m_System ? m_System->GetName() : "Console");
char buffer[256];
snprintf(buffer, sizeof(buffer), "[ReHLDS " APP_VERSION "] %s", m_System ? m_System->GetName() : "Console");
SetTitle(buffer);
//SetTitle(m_System ? m_System->GetName() : "Console");
hinput = GetStdHandle(STD_INPUT_HANDLE);
houtput = GetStdHandle(STD_OUTPUT_HANDLE);