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/main.c | |
| 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/main.c')
| -rwxr-xr-x | src/main.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c index e6c29568..20e5bd35 100755 --- a/src/main.c +++ b/src/main.c @@ -73,6 +73,7 @@ int arm64_atomics = 0; #else //DYNAREC int box64_dynarec = 0; #endif +int box64_libcef = 1; int dlsym_error = 0; int cycle_log = 0; #ifdef HAVE_TRACE @@ -627,6 +628,15 @@ void LoadLogEnv() #endif #endif // Other BOX64 env. var. + p = getenv("BOX64_LIBCEF"); + if(p) { + if(strlen(p)==1) { + if(p[0]>='0' && p[0]<='1') + box64_libcef = p[0]-'0'; + } + if(!box64_libcef) + printf_log(LOG_INFO, "Dynarec will not detect libcef\n"); + } p = getenv("BOX64_LOAD_ADDR"); if(p) { if(sscanf(p, "0x%zx", &box64_load_addr)!=1) |