From 55dbb2ca3f5d7e96a2a77592cc1dc33927a0fd66 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Thu, 7 Nov 2019 05:06:43 +0300 Subject: [PATCH] Revert "game_launch: fix start up" This reverts commit a46e459124f5cb4812078c12ef70e13c4cad989b. --- game_launch/game.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/game_launch/game.cpp b/game_launch/game.cpp index e5517454..7d226372 100644 --- a/game_launch/game.cpp +++ b/game_launch/game.cpp @@ -92,8 +92,11 @@ static void Sys_LoadEngine( void ) Xash_Error("Unable to load the " XASHLIB ": %s", dlerror() ); } - if(( Xash_Main = (pfnInit)GetProcAddress( hEngine, "Platform_Main" )) == NULL && - ( Xash_Main = (pfnInit)GetProcAddress( hEngine, "Host_Main" )) == NULL ) + 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 ) { Xash_Error( XASHLIB " missed 'Host_Main' export: %s", dlerror() ); }