Browse Source

engine: platform: win32: simplify strings operations.

pull/2/head
Andrey Akhmichin 2 years ago committed by Alibek Omarov
parent
commit
e273e09fc9
  1. 4
      engine/platform/win32/con_win.c

4
engine/platform/win32/con_win.c

@ -499,12 +499,12 @@ void Wcon_CreateConsole( void )
if( host.type == HOST_NORMAL ) if( host.type == HOST_NORMAL )
{ {
Q_strncpy( s_wcd.title, va( "Xash3D %s", XASH_VERSION ), sizeof( s_wcd.title )); Q_strncpy( s_wcd.title, "Xash3D " XASH_VERSION, sizeof( s_wcd.title ));
Q_strncpy( s_wcd.log_path, "engine.log", sizeof( s_wcd.log_path )); Q_strncpy( s_wcd.log_path, "engine.log", sizeof( s_wcd.log_path ));
} }
else // dedicated console else // dedicated console
{ {
Q_strncpy( s_wcd.title, va( "XashDS %s", XASH_VERSION ), sizeof( s_wcd.title )); Q_strncpy( s_wcd.title, "XashDS " XASH_VERSION, sizeof( s_wcd.title ));
Q_strncpy( s_wcd.log_path, "dedicated.log", sizeof( s_wcd.log_path )); Q_strncpy( s_wcd.log_path, "dedicated.log", sizeof( s_wcd.log_path ));
s_wcd.log_active = true; // always make log s_wcd.log_active = true; // always make log
} }

Loading…
Cancel
Save