server: implement GetFileSize and GetApproxWavePlayLen from HLSDK 2.4

This commit is contained in:
Alibek Omarov 2021-03-07 02:46:38 +03:00
parent aea9e8efa2
commit 42f47f51b5
2 changed files with 4 additions and 12 deletions

View File

@ -264,7 +264,7 @@ typedef struct enginefuncs_s
void* (*pfnSequenceGet) ( const char* fileName, const char* entryName ); void* (*pfnSequenceGet) ( const char* fileName, const char* entryName );
void* (*pfnSequencePickSentence) ( const char* groupName, int pickMethod, int *picked ); void* (*pfnSequencePickSentence) ( const char* groupName, int pickMethod, int *picked );
int (*pfnGetFileSize) ( char *filename ); int (*pfnGetFileSize) ( const char *filename );
unsigned int (*pfnGetApproxWavePlayLen) (const char *filepath); unsigned int (*pfnGetApproxWavePlayLen) (const char *filepath);
int (*pfnIsCareerMatch) ( void ); int (*pfnIsCareerMatch) ( void );
int (*pfnGetLocalizedStringLength) (const char *label); int (*pfnGetLocalizedStringLength) (const char *label);

View File

@ -4556,15 +4556,7 @@ pfnEngineStub
extended iface stubs extended iface stubs
============= =============
*/ */
static int GAME_EXPORT pfnGetFileSize( char *filename ) static int GAME_EXPORT pfnGetLocalizedStringLength( const char *label )
{
return 0;
}
static unsigned int GAME_EXPORT pfnGetApproxWavePlayLen(const char *filepath)
{
return 0;
}
static int GAME_EXPORT pfnGetLocalizedStringLength(const char *label)
{ {
return 0; return 0;
} }
@ -4718,8 +4710,8 @@ static enginefuncs_t gEngfuncs =
pfnGetPlayerAuthId, pfnGetPlayerAuthId,
pfnSequenceGet, pfnSequenceGet,
pfnSequencePickSentence, pfnSequencePickSentence,
pfnGetFileSize, COM_FileSize,
pfnGetApproxWavePlayLen, Sound_GetApproxWavePlayLen,
pfnIsCareerMatch, pfnIsCareerMatch,
pfnGetLocalizedStringLength, pfnGetLocalizedStringLength,
pfnRegisterTutorMessageShown, pfnRegisterTutorMessageShown,