about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-01-06 10:48:18 +0100
committerptitSeb <sebastien.chev@gmail.com>2024-01-06 10:48:18 +0100
commit5d6ff69e8d26026a6f527a6a606b7eb15b5baa60 (patch)
tree56c4b5b46438e42633fabc4bf5b19c35e236aaee /src
parentcbea2b544367675f710ebab74f4056ca1d18c203 (diff)
downloadbox64-5d6ff69e8d26026a6f527a6a606b7eb15b5baa60.tar.gz
box64-5d6ff69e8d26026a6f527a6a606b7eb15b5baa60.zip
[RCFILE] Added more option to rcfile and added geekbench5 profile
Diffstat (limited to 'src')
-rw-r--r--src/tools/rcfile.c20
1 files changed, 20 insertions, 0 deletions
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);