diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2023-03-05 11:48:48 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2023-03-05 11:48:48 +0100 |
| commit | 72119ddfa449bdfc98c7152653047f34feca332c (patch) | |
| tree | 4074ad32867814b287bd141ab521ce3c967cb202 /src/librarian | |
| parent | d4afca9b5aa1970179d057b23941355c59a9723d (diff) | |
| download | box64-72119ddfa449bdfc98c7152653047f34feca332c.tar.gz box64-72119ddfa449bdfc98c7152653047f34feca332c.zip | |
Added automatic detection of libcef (will help zoon #510, #451, #302 and probably other too)
Diffstat (limited to 'src/librarian')
| -rwxr-xr-x | src/librarian/library.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/librarian/library.c b/src/librarian/library.c index 3cfb2bee..48919220 100755 --- a/src/librarian/library.c +++ b/src/librarian/library.c @@ -306,6 +306,10 @@ static int loadEmulatedLib(const char* libname, library_t *lib, box64context_t* box64_dynarec_strongmem = 1; } #endif + if(libname && box64_libcef && strstr(libname, "libcef.so")) { + printf_log(LOG_INFO, "libcef detected, using malloc_hack_2\n"); + box64_malloc_hack = 2; + } return 1; } return 0; |