From 65ba93ae7700cf0065a6108d2658a429b2bb05f9 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sun, 21 Jul 2024 21:20:20 +0300 Subject: [PATCH] cdll_int: fix mobile API export It's supposed to return an integer value, with a non-zero value for error. --- cl_dll/cdll_int.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cl_dll/cdll_int.cpp b/cl_dll/cdll_int.cpp index bedf5c6cea..ebeb180376 100644 --- a/cl_dll/cdll_int.cpp +++ b/cl_dll/cdll_int.cpp @@ -78,7 +78,7 @@ int DLLEXPORT HUD_GetHullBounds( int hullnumber, float *mins, float *maxs ); void DLLEXPORT HUD_Frame( double time ); void DLLEXPORT HUD_VoiceStatus(int entindex, qboolean bTalking); void DLLEXPORT HUD_DirectorMessage( int iSize, void *pbuf ); -void DLLEXPORT HUD_MobilityInterface( mobile_engfuncs_t *gpMobileEngfuncs ); +int DLLEXPORT HUD_MobilityInterface( mobile_engfuncs_t *gpMobileEngfuncs ); } /* @@ -392,11 +392,12 @@ void DLLEXPORT HUD_DirectorMessage( int iSize, void *pbuf ) gHUD.m_Spectator.DirectorMessage( iSize, pbuf ); } -void DLLEXPORT HUD_MobilityInterface( mobile_engfuncs_t *gpMobileEngfuncs ) +int DLLEXPORT HUD_MobilityInterface( mobile_engfuncs_t *gpMobileEngfuncs ) { if( gpMobileEngfuncs->version != MOBILITY_API_VERSION ) - return; + return 1; gMobileEngfuncs = gpMobileEngfuncs; + return 0; } bool HUD_MessageBox( const char *msg )