engine: use common strings to name the engine, makes branding easier for custom forks
This commit is contained in:
parent
665c46b281
commit
fe5944720b
3 changed files with 5 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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 )
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue