[saco] Implement/match IsHexChar(...)

This commit is contained in:
RD42 2024-07-18 22:09:30 +08:00
parent 41db70ac88
commit 966b759efc
2 changed files with 13 additions and 0 deletions

View File

@ -1849,6 +1849,16 @@ BOOL IsFileOrDirectoryExists(char * szPath)
//---------------------------------------------------- //----------------------------------------------------
BOOL IsHexChar(char c)
{
return c >= '0' && c <= '9' || c >= 'A' && c <= 'F' || c >= 'a' && c <= 'f';
}
BOOL IsHexChar(wchar_t c)
{
return c >= '0' && c <= '9' || c >= 'A' && c <= 'F' || c >= 'a' && c <= 'f';
}
DWORD unnamed_100B6100(char *szString, int nMaxLen) DWORD unnamed_100B6100(char *szString, int nMaxLen)
{ {
char tmp_buf[2049]; char tmp_buf[2049];

View File

@ -64,3 +64,6 @@ int GetInvalidModelInfoCount();
bool HasCollisionLoaded(VECTOR *vec); bool HasCollisionLoaded(VECTOR *vec);
BOOL __stdcall IsATrainPart(ENTITY_TYPE *pEntity); BOOL __stdcall IsATrainPart(ENTITY_TYPE *pEntity);
BOOL IsHexChar(char c);
BOOL IsHexChar(wchar_t c);