X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=frontend%2Fmain.c;h=4ebcf34568a2586b6578d1b61d91be8a2e39c2a3;hp=dc5be3cfeb8232e2f208f6008817b5181890d0e2;hb=ac6575cdd93d665efc374c1a14b391c6a5308972;hpb=4ea7de6a1495abfbc49c54fd2a90e902fdfa13d9 diff --git a/frontend/main.c b/frontend/main.c index dc5be3cf..4ebcf345 100644 --- a/frontend/main.c +++ b/frontend/main.c @@ -730,9 +730,11 @@ void *SysLoadLibrary(const char *lib) { #if defined(__x86_64__) || defined(__i386__) // convenience hack - char name[MAXPATHLEN]; - snprintf(name, sizeof(name), "%s.x86", lib); - lib = name; + if (strstr(lib, ".x86") == NULL) { + char name[MAXPATHLEN]; + snprintf(name, sizeof(name), "%s.x86", lib); + lib = name; + } #endif ret = dlopen(lib, RTLD_NOW);