Skip to content

Commit

Permalink
Merge pull request #119 from Wend4r/fix-linuxsteamrt64_load
Browse files Browse the repository at this point in the history
S2: Add a malloc override
  • Loading branch information
psychonic committed Sep 28, 2023
2 parents 4401a94 + 5ed17a9 commit 0e81445
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion AMBuildScript
Expand Up @@ -395,7 +395,7 @@ class MMSConfig(object):
if compiler.target.arch == 'x86_64':
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']:
compiler.defines += ['NO_HOOK_MALLOC', 'NO_MALLOC_OVERRIDE']

Expand Down
2 changes: 1 addition & 1 deletion core/metamod_oslink.cpp
Expand Up @@ -94,7 +94,7 @@ bool GetFileOfAddress(void *pAddr, char *buffer, size_t maxlength)
return true;
}

#if defined __GNUC__
#if defined __GNUC__ && defined(NO_MALLOC_OVERRIDE)
void * operator new(size_t size) {
return malloc(size);
}
Expand Down

0 comments on commit 0e81445

Please sign in to comment.