Skip to content

Commit 0254fbd

Browse files
committed
[RCFILE][BOX32] Added secret settings to avoid setting Persona to 32bits on box32 runs
1 parent 758a1a9 commit 0254fbd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1160,7 +1160,7 @@ int initialize(int argc, const char **argv, char** env, x64emu_t** emulator, elf
11601160
#ifdef BOX32
11611161
box64_is32bits = FileIsX86ELF(my_context->fullpath);
11621162
// try to switch personality, but only if not already tried
1163-
if(box64_is32bits) {
1163+
if(box64_is32bits && !box64env.nopersona32bits) {
11641164
int tried = getenv("BOX32_PERSONA32BITS")?1:0;
11651165
if(tried) {
11661166
unsetenv("BOX32_PERSONA32BITS");

src/include/env.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ extern char* ftrace_name;
145145
BOOLEAN(BOX64_X11SYNC, x11sync, 0, 0) \
146146
BOOLEAN(BOX64_X11THREADS, x11threads, 0, 0) \
147147
BOOLEAN(BOX64_X87_NO80BITS, x87_no80bits, 0, 1) \
148+
BOOLEAN(BOX64_NOPERSONA32BITS, nopersona32bits, 0, 0) \
148149
INTEGER(BOX64_DYNACACHE, dynacache, 2, 0, 2, 0) \
149150
STRING(BOX64_DYNACACHE_FOLDER, dynacache_folder, 0) \
150151
INTEGER(BOX64_DYNACACHE_MIN, dynacache_min, 350, 0, 10240, 0)

0 commit comments

Comments
 (0)