metamod/meta_eiface.cpp
changeset 277 e207522ad669
parent 274 194308bba518
     1.1 --- a/metamod/meta_eiface.cpp	Fri Mar 15 15:01:20 2013 -0500
     1.2 +++ b/metamod/meta_eiface.cpp	Thu Sep 05 19:50:27 2013 -0500
     1.3 @@ -216,7 +216,7 @@
     1.4          void             (*_pfnServerExecute)                   (void),
     1.5          void             (*_pfnClientCommand)                   (edict_t*, const char*, ...),
     1.6          void             (*_pfnParticleEffect)                  (const float*, const float*, float, float),
     1.7 -        void             (*_pfnLightStyle)                      (int, char*),
     1.8 +        void             (*_pfnLightStyle)                      (int, const char*),
     1.9          int	             (*_pfnDecalIndex)                      (const char*),
    1.10          int              (*_pfnPointContents)                   (const float*),
    1.11          void             (*_pfnMessageBegin)                    (int, int, const float*, edict_t*),
    1.12 @@ -268,7 +268,7 @@
    1.13          void             (*_pfnSetView)                         (const edict_t*, const edict_t*),
    1.14          float            (*_pfnTime)                            (void),
    1.15          void             (*_pfnCrosshairAngle)                  (const edict_t*, float, float),
    1.16 -        byte*            (*_pfnLoadFileForMe)                   (char*, int*),
    1.17 +        byte*            (*_pfnLoadFileForMe)                   (const char*, int*),
    1.18          void             (*_pfnFreeFile)                        (void*),
    1.19          void             (*_pfnEndSection)                      (const char*),
    1.20          int              (*_pfnCompareFileTime)                 (char*, char*, int*),
    1.21 @@ -302,7 +302,7 @@
    1.22          int              (*_pfnCheckVisibility)                 (const edict_t*, unsigned char*),
    1.23          void             (*_pfnDeltaSetField)                   (struct delta_s*, const char*),
    1.24          void             (*_pfnDeltaUnsetField)                 (struct delta_s*, const char*),
    1.25 -        void             (*_pfnDeltaAddEncoder)                 (char*, void (*)(struct delta_s*, const unsigned char*, const unsigned char*)),
    1.26 +        void             (*_pfnDeltaAddEncoder)                 (const char*, void (*)(struct delta_s*, const unsigned char*, const unsigned char*)),
    1.27          int              (*_pfnGetCurrentPlayer)                (void),
    1.28          int              (*_pfnCanSkipPlayer)                   (const edict_t*),
    1.29          int              (*_pfnDeltaFindField)                  (struct delta_s*, const char*),
    1.30 @@ -310,7 +310,7 @@
    1.31          void             (*_pfnDeltaUnsetFieldByIndex)          (struct delta_s*, int),
    1.32          void             (*_pfnSetGroupMask)                    (int, int),
    1.33          int              (*_pfnCreateInstancedBaseline)         (int, struct entity_state_s*),
    1.34 -        void             (*_pfnCvar_DirectSet)                  (struct cvar_s*, char*),
    1.35 +        void             (*_pfnCvar_DirectSet)                  (struct cvar_s*, const char*),
    1.36          void             (*_pfnForceUnmodified)                 (FORCE_TYPE, float*, float*, const char*),
    1.37          void             (*_pfnGetPlayerStats)                  (const edict_t*, int*, int*),
    1.38          void             (*_pfnAddServerCommand)                (const char*, void (*) (void)),
    1.39 @@ -330,7 +330,7 @@
    1.40          void             (*_pfnResetTutorMessageDecayData)      (void),
    1.41          void             (*_pfnQueryClientCvarValue)            (const edict_t*, const char*),
    1.42          void             (*_pfnQueryClientCvarValue2)           (const edict_t*, const char*, int),
    1.43 -        int              (*_pfnEngCheckParm)                    (const char*, char**)
    1.44 +        int              (*_pfnCheckParm)                       (const char*, char**)
    1.45      )
    1.46  {
    1.47      pfnPrecacheModel = _pfnPrecacheModel;
    1.48 @@ -490,7 +490,7 @@
    1.49      pfnResetTutorMessageDecayData = _pfnResetTutorMessageDecayData;
    1.50      pfnQueryClientCvarValue = _pfnQueryClientCvarValue;
    1.51      pfnQueryClientCvarValue2 = _pfnQueryClientCvarValue2;
    1.52 -    pfnEngCheckParm = _pfnEngCheckParm;
    1.53 +    pfnCheckParm = _pfnCheckParm;
    1.54  
    1.55      memset( dummies, 0, sizeof(pdummyfunc) * c_NumDummies ); 
    1.56  }
    1.57 @@ -531,7 +531,7 @@
    1.58  //  	sentenceEntry_s*	(*pfnSequencePickSentence)		( const char* groupName, int pickMethod, int *picked );
    1.59  //	
    1.60  //		// LH: Give access to filesize via filesystem
    1.61 -// 147:	int			(*pfnGetFileSize)						( char *filename );
    1.62 +// 147:	int			(*pfnGetFileSize)						( const char *filename );
    1.63  //
    1.64  //		unsigned int (*pfnGetApproxWavePlayLen)				(const char *filepath);
    1.65  //		// MDC: Added for CZ career-mode
    1.66 @@ -551,7 +551,7 @@
    1.67  
    1.68  // 156:	void		(*pfnQueryClientCvarValue)				( const edict_t *player, const char *cvarName );
    1.69  // 157:	void		(*pfnQueryClientCvarValue2)				( const edict_t *player, const char *cvarName, int requestID );
    1.70 -// 158: int			(*pfnEngCheckParm)						( const char *pchCmdLineToke, char **pchNextValue );
    1.71 +// 158: int			(*pfnCheckParm)							( const char *pchCmdLineToke, char **ppnext );
    1.72  
    1.73  
    1.74  void HL_enginefuncs_t::determine_engine_interface_version( void )
    1.75 @@ -605,8 +605,8 @@
    1.76  	if ( ! Engine.info.is_valid_code_pointer(pfnQueryClientCvarValue2) ) {
    1.77  		pfnQueryClientCvarValue2 = NULL;
    1.78  	}
    1.79 -	if ( ! Engine.info.is_valid_code_pointer(pfnEngCheckParm) ) {
    1.80 -		pfnEngCheckParm = NULL;
    1.81 +	if ( ! Engine.info.is_valid_code_pointer(pfnCheckParm) ) {
    1.82 +		pfnCheckParm = NULL;
    1.83  	}
    1.84  
    1.85  	// Now begins our heuristic, where we try to determine the engine
    1.86 @@ -679,10 +679,10 @@
    1.87  	}
    1.88  	sm_version = 157;
    1.89  
    1.90 -	// All functions up to EngCheckParm() are valid.
    1.91 -	// If EngCheckParm() is not valid, leave it at the so far determined
    1.92 +	// All functions up to CheckParm() are valid.
    1.93 +	// If CheckParm() is not valid, leave it at the so far determined
    1.94  	// version. Otherwise the version is at least 158.
    1.95 -	if ( pfnEngCheckParm == NULL) {
    1.96 +	if ( pfnCheckParm == NULL) {
    1.97  		return;
    1.98  	}
    1.99  	sm_version = 158;
   1.100 @@ -720,7 +720,7 @@
   1.101  	case 156:
   1.102  		pfnQueryClientCvarValue2 = NULL;
   1.103  	case 157:
   1.104 -		pfnEngCheckParm = NULL;
   1.105 +		pfnCheckParm = NULL;
   1.106  	}
   1.107  }
   1.108