engine: client: keys: refactoring, remove NULL sentinels, make keys structs and few more functions private to keys.c file

This commit is contained in:
Alibek Omarov
2024-12-21 15:22:44 +03:00
parent af4b64983a
commit 1dd622fcbb
5 changed files with 46 additions and 69 deletions

View File

@@ -612,7 +612,7 @@ COM_Nibble
Returns the 4 bit nibble for a hex character
==================
*/
static byte COM_Nibble( char c )
byte COM_Nibble( char c )
{
if(( c >= '0' ) && ( c <= '9' ))
{

View File

@@ -597,6 +597,7 @@ qboolean SV_Active( void );
*/
char *COM_MemFgets( byte *pMemFile, int fileSize, int *filePos, char *pBuffer, int bufferSize );
void COM_HexConvert( const char *pszInput, int nInputLength, byte *pOutput );
byte COM_Nibble( char c );
int COM_SaveFile( const char *filename, const void *data, int len );
byte *COM_LoadFileForMe( const char *filename, int *pLength ) MALLOC_LIKE( free, 1 );
qboolean COM_IsSafeFileToDownload( const char *filename );