about summary refs log tree commit diff stats
path: root/src/core.c
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-07-03 11:19:55 +0200
committerptitSeb <sebastien.chev@gmail.com>2024-07-03 11:19:55 +0200
commit0ba46403c622f1c60695852a0c61f15880a95d2c (patch)
tree5c2ef08acc753703b5937277fd3ab82dafa9fd44 /src/core.c
parentcac43a1f5f6e5289db67ffac45954aec51ff9c15 (diff)
downloadbox64-0ba46403c622f1c60695852a0c61f15880a95d2c.tar.gz
box64-0ba46403c622f1c60695852a0c61f15880a95d2c.zip
Detect UnityPlayer.dll to apply strongmem=1 automatically (can be disabled with BOX64_UNITYPLAYER=0)
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core.c b/src/core.c
index fbd41ba4..f31efadd 100644
--- a/src/core.c
+++ b/src/core.c
@@ -129,6 +129,7 @@ int box64_dynarec = 0;
 #endif
 int box64_libcef = 1;
 int box64_jvm = 1;
+int box64_unityplayer = 1;
 int box64_sdl2_jguid = 0;
 int dlsym_error = 0;
 int cycle_log = 0;
@@ -924,6 +925,15 @@ void LoadLogEnv()
         if(!box64_jvm)
             printf_log(LOG_INFO, "BOX64 will not detect libjvm\n");
     }
+    p = getenv("BOX64_UNITYPLAYER");
+    if(p) {
+        if(strlen(p)==1) {
+            if(p[0]>='0' && p[0]<='1')
+                box64_unityplayer = p[0]-'0';
+        }
+        if(!box64_unityplayer)
+            printf_log(LOG_INFO, "BOX64 will not detect UnityPlayer.dll\n");
+    }
     p = getenv("BOX64_SDL2_JGUID");
     if(p) {
         if(strlen(p)==1) {