mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
engine: common: add a host_writeconfig console command
This commit is contained in:
committed by
a1batross
parent
10ada3c141
commit
2c26601bee
@@ -914,6 +914,13 @@ static void Host_Userconfigd_f( void )
|
||||
Mem_Free( t );
|
||||
}
|
||||
|
||||
#if !XASH_DEDICATED
|
||||
static void Host_WriteConfig_f( void )
|
||||
{
|
||||
Host_WriteConfig();
|
||||
}
|
||||
#endif
|
||||
|
||||
#if XASH_ENGINE_TESTS
|
||||
static void Host_RunTests( int stage )
|
||||
{
|
||||
@@ -1146,6 +1153,10 @@ static void Host_InitCommon( int argc, char **argv, const char *progname, qboole
|
||||
Cmd_AddCommand( "memlist", Host_MemStats_f, "prints memory pool information" );
|
||||
Cmd_AddRestrictedCommand( "userconfigd", Host_Userconfigd_f, "execute all scripts from userconfig.d" );
|
||||
|
||||
#if !XASH_DEDICATED
|
||||
Cmd_AddRestrictedCommand( "host_writeconfig", Host_WriteConfig_f, "save current configuration" );
|
||||
#endif
|
||||
|
||||
Image_Init();
|
||||
Sound_Init();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user