From a46e459124f5cb4812078c12ef70e13c4cad989b Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sat, 2 Nov 2019 08:55:30 +0300 Subject: [PATCH] game_launch: fix start up --- game_launch/game.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/game_launch/game.cpp b/game_launch/game.cpp index 7d226372..e5517454 100644 --- a/game_launch/game.cpp +++ b/game_launch/game.cpp @@ -92,11 +92,8 @@ static void Sys_LoadEngine( void ) Xash_Error("Unable to load the " XASHLIB ": %s", dlerror() ); } - if(( Xash_Main = (pfnInit)GetProcAddress( hEngine, "Platform_Main" )) == NULL ) - { - // silently ignore absence of platform-specific init - } - else if(( Xash_Main = (pfnInit)GetProcAddress( hEngine, "Host_Main" )) == NULL ) + if(( Xash_Main = (pfnInit)GetProcAddress( hEngine, "Platform_Main" )) == NULL && + ( Xash_Main = (pfnInit)GetProcAddress( hEngine, "Host_Main" )) == NULL ) { Xash_Error( XASHLIB " missed 'Host_Main' export: %s", dlerror() ); }