mirror of
https://github.com/ptitSeb/box64.git
synced 2025-05-09 00:21:32 +08:00
[RCFILE] Fixed some issues with wine program detection
This commit is contained in:
parent
df928fd2d0
commit
ed2697d6ad
@ -1532,6 +1532,7 @@ static void add_argv(const char* what) {
|
||||
if(!strcmp(my_context->argv[i], what))
|
||||
there = 1;
|
||||
if(!there) {
|
||||
printf_log(LOG_INFO, "Inserting \"%s\" to the argments\n", what);
|
||||
my_context->argv = (char**)box_realloc(my_context->argv, (my_context->argc+1)*sizeof(char*));
|
||||
my_context->argv[my_context->argc] = box_strdup(what);
|
||||
my_context->argc++;
|
||||
@ -1699,7 +1700,7 @@ int main(int argc, const char **argv, char **env) {
|
||||
}
|
||||
}
|
||||
// Try to get the name of the exe being run, to ApplyParams laters
|
||||
if(argv[nextarg+1] && argv[nextarg+1][0]!='-' && strlen(argv[nextarg+1])>4 && !strcasecmp(argv[nextarg+1]+strlen(argv[nextarg+1]-4), ".exe")) {
|
||||
if(argv[nextarg+1] && argv[nextarg+1][0]!='-' && strlen(argv[nextarg+1])>4 && !strcasecmp(argv[nextarg+1]+strlen(argv[nextarg+1])-4, ".exe")) {
|
||||
const char* pp = strrchr(argv[nextarg+1], '/');
|
||||
if(pp)
|
||||
wine_prog = pp+1;
|
||||
@ -1711,7 +1712,7 @@ int main(int argc, const char **argv, char **env) {
|
||||
wine_prog = argv[nextarg+1];
|
||||
}
|
||||
}
|
||||
|
||||
if(wine_prog) printf_log(LOG_INFO, "BOX64: Detected running wine with \"%s\"\n", wine_prog);
|
||||
} else if(strstr(prog, "ld-musl-x86_64.so.1")) {
|
||||
// check if ld-musl-x86_64.so.1 is used
|
||||
printf_log(LOG_INFO, "BOX64: ld-musl detected. Trying to workaround and use system ld-linux\n");
|
||||
|
@ -162,11 +162,11 @@ BOX64_EMULATED_LIBS=libSDL2-2.0.so.0:libSDL2_ttf-2.0.so.0
|
||||
BOX64_DYNAREC_STRONGMEM=4
|
||||
BOX64_DYNAREC_BIGBLOCK=0
|
||||
BOX64_DYNAREC_SAFEFLAGS=2
|
||||
BOX64_CEFDISABLEGPU=1
|
||||
|
||||
[steam.exe]
|
||||
BOX64_DYNAREC_BIGBLOCK=0
|
||||
BOX64_DYNAREC_STRONGMEM=1
|
||||
BOX64_CEFDISABLEGPU=1
|
||||
|
||||
[steam-runtime-check-requirements]
|
||||
BOX64_EXIT=1
|
||||
|
Loading…
x
Reference in New Issue
Block a user