[RCFILE] Added more option to rcfile and added geekbench5 profile

This commit is contained in:
ptitSeb 2024-01-06 10:48:18 +01:00
parent cbea2b5443
commit 5d6ff69e8d
3 changed files with 26 additions and 1 deletions

View File

@ -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

View File

@ -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);

View File

@ -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