diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2021-11-18 13:50:10 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2021-11-18 13:50:10 +0100 |
| commit | 39dbfd9fd8c1cadf1a909029236dec973b190a3c (patch) | |
| tree | a7489f6edfd7741da785e609ac6ddada92984e9a /src | |
| parent | 2d18558dc544c3009f1e08a3620eb58396acd7b9 (diff) | |
| download | box64-39dbfd9fd8c1cadf1a909029236dec973b190a3c.tar.gz box64-39dbfd9fd8c1cadf1a909029236dec973b190a3c.zip | |
[DYNAREC] Removed special case for RimWorldLinux and generalized it for all program loading libmonodbwgc-2.0.so
Diffstat (limited to 'src')
| -rwxr-xr-x | src/librarian/library.c | 6 | ||||
| -rwxr-xr-x | src/main.c | 7 |
2 files changed, 6 insertions, 7 deletions
diff --git a/src/librarian/library.c b/src/librarian/library.c index 116c174a..eb9a4459 100755 --- a/src/librarian/library.c +++ b/src/librarian/library.c @@ -262,6 +262,12 @@ static int loadEmulatedLib(const char* libname, library_t *lib, box64context_t* lib->priv.n.localsymbols = kh_init(mapsymbols); printf_log(LOG_INFO, "Using emulated %s\n", libname); + #ifdef DYNAREC + if(libname && strstr(libname, "libmonobdwgc-2.0.so")) { + printf_log(LOG_INFO, "MonoBleedingEdge detected, disable Dynarec BigBlock\n"); + box64_dynarec_bigblock = 0; + } + #endif return 1; } return 0; diff --git a/src/main.c b/src/main.c index 933cd57f..034b6d6d 100755 --- a/src/main.c +++ b/src/main.c @@ -942,13 +942,6 @@ int main(int argc, const char **argv, const char **env) { printf_log(LOG_INFO, "Zoom detected, trying to use system libturbojpeg if possible\n"); box64_zoom = 1; } - // special case for RimWorldLinux - #ifdef DYNAREC - if(strstr(prgname, "RimWorldLinux")==prgname) { - printf_log(LOG_INFO, "RimWorld detected, disabling bigblock on the Dynarec\n"); - box64_dynarec_bigblock = 0; - } - #endif /*if(strstr(prgname, "awesomium_process")==prgname) { printf_log(LOG_INFO, "awesomium_process detected, forcing emulated libpng12\n"); AddPath("libpng12.so.0", &my_context->box64_emulated_libs, 0); |