host: common: switch host_writeconfig to direct function call

This commit is contained in:
Bohdan Shulyar
2025-08-04 21:33:18 +03:00
committed by a1batross
parent 2c26601bee
commit 0ba45d343e

View File

@@ -914,13 +914,6 @@ 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 )
{
@@ -1154,7 +1147,7 @@ static void Host_InitCommon( int argc, char **argv, const char *progname, qboole
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" );
Cmd_AddRestrictedCommand( "host_writeconfig", Host_WriteConfig, "save current configuration" );
#endif
Image_Init();