1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2025-02-26 19:54:14 +01:00

Malloc override on s2

This commit is contained in:
Wend4r2 2023-09-28 22:52:36 +03:00
parent 4401a94aa6
commit 5ed17a9081
2 changed files with 2 additions and 2 deletions

View File

@ -395,7 +395,7 @@ class MMSConfig(object):
if compiler.target.arch == 'x86_64': if compiler.target.arch == 'x86_64':
compiler.defines += ['X64BITS', 'PLATFORM_64BITS'] compiler.defines += ['X64BITS', 'PLATFORM_64BITS']
if sdk.name in ['css', 'hl2dm', 'dods', 'sdk2013', 'bms', 'tf2', 'l4d', 'nucleardawn', 'l4d2', 'dota', 'cs2', 'pvkii']: if sdk.name in ['css', 'hl2dm', 'dods', 'sdk2013', 'bms', 'tf2', 'l4d', 'nucleardawn', 'l4d2', 'pvkii']:
if compiler.target.platform in ['linux', 'mac']: if compiler.target.platform in ['linux', 'mac']:
compiler.defines += ['NO_HOOK_MALLOC', 'NO_MALLOC_OVERRIDE'] compiler.defines += ['NO_HOOK_MALLOC', 'NO_MALLOC_OVERRIDE']

View File

@ -94,7 +94,7 @@ bool GetFileOfAddress(void *pAddr, char *buffer, size_t maxlength)
return true; return true;
} }
#if defined __GNUC__ #if defined __GNUC__ && defined(NO_MALLOC_OVERRIDE)
void * operator new(size_t size) { void * operator new(size_t size) {
return malloc(size); return malloc(size);
} }