diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2021-06-15 17:10:54 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2021-06-15 17:10:54 +0200 |
| commit | aceb234c2ef022bfdec7063e90569899bd2d8954 (patch) | |
| tree | e2a3877e0f7287fe02e63a7a981a9b689f24fd2e /src/main.c | |
| parent | dd6b60818c97e470c65a853559f838b7ea25e497 (diff) | |
| download | box64-aceb234c2ef022bfdec7063e90569899bd2d8954.tar.gz box64-aceb234c2ef022bfdec7063e90569899bd2d8954.zip | |
Improved steam detection and added steam-runtime-check-requirements workaround
Diffstat (limited to 'src/main.c')
| -rwxr-xr-x | src/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c index 6a94e303..4c03f525 100755 --- a/src/main.c +++ b/src/main.c @@ -824,16 +824,16 @@ int main(int argc, const char **argv, const char **env) { AddPath("libSDL2-2.0.so.0", &my_context->box64_emulated_libs, 0); } // special case for steam that somehow seems to alter libudev opaque pointer (udev_monitor) - if(strstr(prgname, "steam")==prgname) { + if(!strcmp(prgname, "steam")) { printf_log(LOG_INFO, "steam detected, forcing emulated libudev\n"); AddPath("libudev.so.0", &my_context->box64_emulated_libs, 0); box64_steam = 1; } - /*// special case for steam-runtime-check-requirements to fake 64bits suport + // special case for steam-runtime-check-requirements to fake 64bits suport if(strstr(prgname, "steam-runtime-check-requirements")==prgname) { printf_log(LOG_INFO, "steam-runtime-check-requirements detected, faking All is good!\n"); exit(0); // exiting, not testing anything - }*/ + } // special case for UnrealLinux.bin, it doesn't like "full path resolution" if(!strcmp(prog, "UnrealLinux.bin") && my_context->argv[0]) { free(my_context->argv[0]); |