re-added support for hl-1.1.0.4 & cs beta 6.6 minimum.

This commit is contained in:
jeefo 2016-09-14 15:40:42 +03:00
commit 37a352ac54
7 changed files with 55 additions and 28 deletions

View file

@ -66,6 +66,18 @@ static inline char *A_strdup (const char *str)
return strcpy (new char[strlen (str) + 1], str);
}
// From metamod-p
static inline bool A_IsValidCodePointer (const void *ptr)
{
#ifdef _WIN32
if (IsBadCodePtr (reinterpret_cast <FARPROC> (ptr)))
return false;
#endif
// do not check on linux
return true;
}
//
// Title: Utility Classes Header
//