diff --git a/engine/common/com_strings.h b/engine/common/com_strings.h index 492123cc..e256d19a 100644 --- a/engine/common/com_strings.h +++ b/engine/common/com_strings.h @@ -74,6 +74,7 @@ GNU General Public License for more details. #define DEFAULT_UPDATE_PAGE "https://github.com/FWGS/xash3d-fwgs/releases/latest" #define XASH_ENGINE_NAME "Xash3D FWGS" +#define XASH_DEDICATED_SERVER_NAME "XashDS" #define XASH_VERSION "0.20" // engine current version #define XASH_COMPAT_VERSION "0.99" // version we are based on diff --git a/engine/common/sys_con.c b/engine/common/sys_con.c index 842db106..e43e645f 100644 --- a/engine/common/sys_con.c +++ b/engine/common/sys_con.c @@ -136,8 +136,8 @@ void Sys_InitLog( void ) else mode = "w"; if( Host_IsDedicated( )) - Q_snprintf( s_ld.title, sizeof( s_ld.title ), "XashDS %s", XASH_VERSION ); - else Q_snprintf( s_ld.title, sizeof( s_ld.title ), "Xash3D FWGS %s", XASH_VERSION ); + Q_strncpy( s_ld.title, XASH_DEDICATED_SERVER_NAME " " XASH_VERSION, sizeof( s_ld.title )); + else Q_strncpy( s_ld.title, XASH_ENGINE_NAME " " XASH_VERSION, sizeof( s_ld.title )); // create log if needed if( s_ld.log_active ) diff --git a/engine/platform/win32/con_win.c b/engine/platform/win32/con_win.c index 5a0bb584..d2851861 100644 --- a/engine/platform/win32/con_win.c +++ b/engine/platform/win32/con_win.c @@ -504,12 +504,12 @@ void Wcon_CreateConsole( void ) if( host.type == HOST_NORMAL ) { - Q_strncpy( s_wcd.title, "Xash3D " XASH_VERSION, sizeof( s_wcd.title )); + Q_strncpy( s_wcd.title, XASH_ENGINE_NAME " " XASH_VERSION, sizeof( s_wcd.title )); Q_strncpy( s_wcd.log_path, "engine.log", sizeof( s_wcd.log_path )); } else // dedicated console { - Q_strncpy( s_wcd.title, "XashDS " XASH_VERSION, sizeof( s_wcd.title )); + Q_strncpy( s_wcd.title, XASH_DEDICATED_SERVER_NAME " " XASH_VERSION, sizeof( s_wcd.title )); Q_strncpy( s_wcd.log_path, "dedicated.log", sizeof( s_wcd.log_path )); s_wcd.log_active = true; // always make log }