X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=frontend%2Fmain.c;h=23ed7b1431f820ddf3824908e7f1a0999cd8499b;hp=b3a56c606d2963c242f0488f350ea7b35b01ea0e;hb=2185e39b1c84bf855deafa5605f4316238d2c354;hpb=7e400e1c1d60c94128b3b44019be9e9ad52a033c diff --git a/frontend/main.c b/frontend/main.c index b3a56c60..23ed7b14 100644 --- a/frontend/main.c +++ b/frontend/main.c @@ -432,6 +432,13 @@ void *SysLoadLibrary(const char *lib) { return (void *)(long)(PLUGIN_DL_BASE + builtin_plugin_ids[i]); } +#if defined(__x86_64__) || defined(__i386__) + // convenience hack + char name[MAXPATHLEN]; + snprintf(name, sizeof(name), "%s.x86", lib); + lib = name; +#endif + return dlopen(lib, RTLD_NOW); }