engine: client: hack mobile API init because of incorrectly defined export in hlsdk-portable

This commit is contained in:
Alibek Omarov 2024-07-21 21:18:00 +03:00
parent 7a469fb481
commit 790f9bde54
1 changed files with 6 additions and 0 deletions

View File

@ -132,9 +132,15 @@ qboolean Mobile_Init( void )
} }
// make sure that mobile functions are cleared // make sure that mobile functions are cleared
#if 1
// some SDKs define export as returning void, breaking the contract
// ignore result for now...
return true;
#else
memset( &mobile_engfuncs, 0, sizeof( mobile_engfuncs )); memset( &mobile_engfuncs, 0, sizeof( mobile_engfuncs ));
return false; // just tell user about problems return false; // just tell user about problems
#endif
} }
return true; // mobile interface is missed return true; // mobile interface is missed