re-added support for hl-1.1.0.4 & cs beta 6.6 minimum.
This commit is contained in:
parent
af82dbf1bb
commit
37a352ac54
7 changed files with 55 additions and 28 deletions
|
|
@ -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
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue