From aceb234c2ef022bfdec7063e90569899bd2d8954 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Tue, 15 Jun 2021 17:10:54 +0200 Subject: Improved steam detection and added steam-runtime-check-requirements workaround --- src/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main.c') 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]); -- cgit 1.4.1