about summary refs log tree commit diff stats
path: root/src/main.c
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2023-03-05 11:48:48 +0100
committerptitSeb <sebastien.chev@gmail.com>2023-03-05 11:48:48 +0100
commit72119ddfa449bdfc98c7152653047f34feca332c (patch)
tree4074ad32867814b287bd141ab521ce3c967cb202 /src/main.c
parentd4afca9b5aa1970179d057b23941355c59a9723d (diff)
downloadbox64-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-xsrc/main.c10
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)