mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-09 05:41:46 +08:00
public: add Q_memfgets, replacement for COM_MemFgets rewritten using crtlib functions. Add a test
This commit is contained in:
@@ -776,7 +776,7 @@ void CL_InitClientMove( void )
|
||||
clgame.pmove->COM_FileSize = COM_FileSize;
|
||||
clgame.pmove->COM_LoadFile = COM_LoadFile;
|
||||
clgame.pmove->COM_FreeFile = COM_FreeFile;
|
||||
clgame.pmove->memfgets = COM_MemFgets;
|
||||
clgame.pmove->memfgets = Q_memfgets;
|
||||
clgame.pmove->PM_PlaySound = pfnPlaySound;
|
||||
clgame.pmove->PM_TraceTexture = PM_CL_TraceTexture;
|
||||
clgame.pmove->PM_PlaybackEventFull = pfnPlaybackEventFull;
|
||||
|
||||
@@ -227,7 +227,7 @@ client_textmessage_t *CL_TextMessageParse( poolhandle_t mempool, byte *pMemFile,
|
||||
lastLinePos = 0;
|
||||
messageCount = 0;
|
||||
|
||||
while( COM_MemFgets( pMemFile, fileSize, &filePos, buf, 512 ) != NULL )
|
||||
while( Q_memfgets( pMemFile, fileSize, &filePos, buf, 512 ) != NULL )
|
||||
{
|
||||
COM_TrimSpace( trim, buf, sizeof( trim ));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user