game_launch: check for Platform_Main before Host_Main
This commit is contained in:
parent
2958b14cc2
commit
6aa61657e0
1 changed files with 5 additions and 1 deletions
|
@ -92,7 +92,11 @@ static void Sys_LoadEngine( void )
|
||||||
Xash_Error("Unable to load the " XASHLIB ": %s", dlerror() );
|
Xash_Error("Unable to load the " XASHLIB ": %s", dlerror() );
|
||||||
}
|
}
|
||||||
|
|
||||||
if(( 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() );
|
Xash_Error( XASHLIB " missed 'Host_Main' export: %s", dlerror() );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue