1.1 --- a/metamod/game_support.cpp Mon Feb 11 23:19:35 2013 +0000
1.2 +++ b/metamod/game_support.cpp Tue Feb 12 19:01:13 2013 +0000
1.3 @@ -184,10 +184,10 @@
1.4 ok = install_gamedll(gamedll->pathname, gamedll->real_pathname);
1.5 }
1.6
1.7 - // If the file still doesn't exist, and knownfn has an "_i386.so"
1.8 - // in it, try to strip the _i386.so out.
1.9 + // If the file still doesn't exist, and knownfn has an "_*.so"
1.10 + // in it, try to strip the _* out.
1.11 if (!ok) {
1.12 - if (char *loc = strstr(knownfn, "_i386.so")) {
1.13 + if (char *loc = strrchr(knownfn, '_')) {
1.14 strcpy(loc, ".so");
1.15 snprintf(gamedll->pathname, sizeof(gamedll->pathname), "dlls/%s", knownfn);
1.16 snprintf(gamedll->real_pathname, sizeof(gamedll->real_pathname),