diff --git a/docs/USAGE.md b/docs/USAGE.md index b756541c..a9ccfc60 100644 --- a/docs/USAGE.md +++ b/docs/USAGE.md @@ -310,7 +310,7 @@ Define x86_64 bash to launch script * XXX=yyyy will add XXX=yyyy env. var. -#### BOX64_ENV1 +#### BOX64_ENV1 * * XXX=yyyy will add XXX=yyyy env. var. and continue with BOX86_ENV2 ... until var doesn't exist diff --git a/src/tools/rcfile.c b/src/tools/rcfile.c index 97da98a2..cea7d5cf 100644 --- a/src/tools/rcfile.c +++ b/src/tools/rcfile.c @@ -111,6 +111,10 @@ ENTRYBOOL(BOX64_SDL2_JGUID, box64_sdl2_jguid) \ ENTRYINT(BOX64_MALLOC_HACK, box64_malloc_hack, 0, 2, 2) \ ENTRYINTPOS(BOX64_MAXCPU, new_maxcpu) \ ENTRYSTRING_(BOX64_ENV, new_env) \ +ENTRYSTRING_(BOX64_ENV1, new_env1) \ +ENTRYSTRING_(BOX64_ENV2, new_env2) \ +ENTRYSTRING_(BOX64_ENV3, new_env3) \ +ENTRYSTRING_(BOX64_ENV4, new_env4) \ #ifdef HAVE_TRACE #define SUPER2() \ @@ -544,6 +548,22 @@ void ApplyParams(const char* name) addNewEnvVar(param->new_env); printf_log(LOG_INFO, "Applying %s=%s\n", "BOX64_ENV", param->new_env); } + if(param->is_new_env1_present) { + addNewEnvVar(param->new_env1); + printf_log(LOG_INFO, "Applying %s=%s\n", "BOX64_ENV1", param->new_env1); + } + if(param->is_new_env2_present) { + addNewEnvVar(param->new_env2); + printf_log(LOG_INFO, "Applying %s=%s\n", "BOX64_ENV2", param->new_env2); + } + if(param->is_new_env3_present) { + addNewEnvVar(param->new_env3); + printf_log(LOG_INFO, "Applying %s=%s\n", "BOX64_ENV3", param->new_env3); + } + if(param->is_new_env4_present) { + addNewEnvVar(param->new_env4); + printf_log(LOG_INFO, "Applying %s=%s\n", "BOX64_ENV4", param->new_env4); + } if(param->is_bash_present && FileIsX64ELF(param->bash)) { if(my_context->bashpath) free(my_context->bashpath); diff --git a/system/box64.box64rc b/system/box64.box64rc index bf468d1d..f12aace4 100644 --- a/system/box64.box64rc +++ b/system/box64.box64rc @@ -71,6 +71,11 @@ BOX64_DYNAREC_ALIGNED_ATOMICS=1 [geekbench6] BOX64_ENV=BOX64_DYNAREC_STRONGMEM=3 +[geekbench5] +BOX64_ENV=BOX64_DYNAREC_BIGBLOCK=2 +BOX64_ENV1=BOX64_DYNAREC_FORWARD=1024 +BOX64_ENV2=BOX64_DYNAREC_CALLRET=1 + [GridAutosport] #BOX64_DYNAREC_BIGBLOCK=2 BOX64_NOSANDBOX=1