diff options
Diffstat (limited to 'src')
| -rwxr-xr-x | src/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c index 81eb7b19..118e7e33 100755 --- a/src/main.c +++ b/src/main.c @@ -596,6 +596,10 @@ void endBox64() // than call all the Fini (some "smart" ordering of the fini may be needed, but for now, callign in this order should be good enough) printf_log(LOG_DEBUG, "Calling fini for all loaded elfs and unload native libs\n"); RunElfFini(my_context->elfs[0], emu); + #ifdef DYNAREC + // disable dynarec now + box64_dynarec = 0; + #endif FreeLibrarian(&my_context->local_maplib, emu); // unload all libs FreeLibrarian(&my_context->maplib, emu); // unload all libs // waiting for all thread except this one to finish |