diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2023-05-31 18:21:42 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2023-05-31 18:21:42 +0200 |
| commit | c5e8aaff4a73665ad9ee0231713a7b6068bf2547 (patch) | |
| tree | 580fbdb15a94a17f469f1e85b4850ff32c3e8851 /src/main.c | |
| parent | 2017ef192f49715783e0108d8d0ac4b826b0ac45 (diff) | |
| download | box64-c5e8aaff4a73665ad9ee0231713a7b6068bf2547.tar.gz box64-c5e8aaff4a73665ad9ee0231713a7b6068bf2547.zip | |
[DYNAREC] Addeddetection of libjvm (and an option to disable it) to apply conservative settings when loaded (should help #813) and probably other java based games/apps)
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 e6d22201..b3983abd 100755 --- a/src/main.c +++ b/src/main.c @@ -61,6 +61,7 @@ int box64_dynarec_callret = 0; int box64_dynarec_hotpage = 0; int box64_dynarec_fastpage = 0; int box64_dynarec_bleeding_edge = 1; +int box64_dynarec_jvm = 1; int box64_dynarec_wait = 1; int box64_dynarec_test = 0; int box64_dynarec_missing = 0; @@ -575,6 +576,15 @@ void LoadLogEnv() if(!box64_dynarec_bleeding_edge) printf_log(LOG_INFO, "Dynarec will not detect MonoBleedingEdge\n"); } + p = getenv("BOX64_DYNAREC_JVM"); + if(p) { + if(strlen(p)==1) { + if(p[0]>='0' && p[0]<='1') + box64_dynarec_jvm = p[0]-'0'; + } + if(!box64_dynarec_jvm) + printf_log(LOG_INFO, "Dynarec will not detect libjvm\n"); + } p = getenv("BOX64_DYNAREC_WAIT"); if(p) { if(strlen(p)==1) { |