From 0ba45d343ea05afd2ce3dc1b2f9119776b76de91 Mon Sep 17 00:00:00 2001 From: Bohdan Shulyar Date: Mon, 4 Aug 2025 21:33:18 +0300 Subject: [PATCH] host: common: switch host_writeconfig to direct function call --- engine/common/host.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/engine/common/host.c b/engine/common/host.c index b71cbc0b..375c0729 100644 --- a/engine/common/host.c +++ b/engine/common/host.c @@ -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();