mirror of
https://github.com/FWGS/hlsdk-xash3d
synced 2024-11-21 09:26:14 +01:00
cdll_int: fix mobile API export
It's supposed to return an integer value, with a non-zero value for error.
This commit is contained in:
parent
ee304c94b6
commit
65ba93ae77
@ -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 )
|
||||
|
Loading…
Reference in New Issue
Block a user