From 5887e77dc79263938a506b4de4ab06e1feedf8fa Mon Sep 17 00:00:00 2001 From: STAM Date: Wed, 16 Jul 2025 14:36:58 +0300 Subject: [PATCH] added "[ReHLDS %version%]" to win32 title example: "[ReHLDS 3.15.0.784] Console" --- rehlds/common/TextConsoleWin32.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rehlds/common/TextConsoleWin32.cpp b/rehlds/common/TextConsoleWin32.cpp index 1ac38f3..e5d56a5 100644 --- a/rehlds/common/TextConsoleWin32.cpp +++ b/rehlds/common/TextConsoleWin32.cpp @@ -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);