game_launch: simplify

This commit is contained in:
Alibek Omarov
2026-03-05 02:58:00 +05:00
parent b2886dd2e9
commit 0389ef3b04
2 changed files with 7 additions and 22 deletions
+1 -6
View File
@@ -52,7 +52,6 @@ typedef void (*pfnShutdown)( void );
static pfnInit Host_Main;
static pfnShutdown Host_Shutdown = NULL;
static char szGameDir[128]; // safe place to keep gamedir
static int szArgc;
static char **szArgv;
static HINSTANCE hEngine;
@@ -172,12 +171,8 @@ static int Sys_Start( void )
setenv( "XASH3D_RODIR", "/usr/share/harbour-xash3d-fwgs/rodir", true );
#endif // XASH_SAILFISH
strncpy( szGameDir, XASH_GAMEDIR, sizeof( szGameDir ) - 1 );
Sys_LoadEngine();
ret = Host_Main( szArgc, szArgv, szGameDir, 0, XASH_DISABLE_MENU_CHANGEGAME ? NULL : Sys_ChangeGame );
ret = Host_Main( szArgc, szArgv, XASH_GAMEDIR, 0, XASH_DISABLE_MENU_CHANGEGAME ? NULL : Sys_ChangeGame );
Sys_UnloadEngine();
return ret;