1.1 --- a/loader/stripper_loader.cpp Wed Oct 10 01:58:10 2007 +0000
1.2 +++ b/loader/stripper_loader.cpp Wed Oct 10 02:18:12 2007 +0000
1.3 @@ -13,7 +13,7 @@
1.4 inline bool IsPathSepChar(char c) { return (c == '/' || c == '\\'); }
1.5 #else
1.6 #define EXPORT extern "C" __attribute__((visibility("default")))
1.7 -#define PLATFORM_EXT "_i486.so"
1.8 +#define PLATFORM_EXT ".so"
1.9 #define PATH_SEP_CHAR "/"
1.10 #define LoadLibrary(x) dlopen(x, RTLD_NOW)
1.11 #define GetProcAddress(x,s) dlsym(x,s)
1.12 @@ -23,9 +23,9 @@
1.13 inline bool IsPathSepChar(char c) { return (c == '/'); }
1.14 #endif
1.15
1.16 -#define MMS_1_4_EP1_FILE "stripper.14.ep1"
1.17 -#define MMS_1_6_EP1_FILE "stripper.16.ep1"
1.18 -#define MMS_1_6_EP2_FILE "stripper.16.ep2"
1.19 +#define MMS_1_4_EP1_FILE "stripper.14.ep1" PLATFORM_EXT
1.20 +#define MMS_1_6_EP1_FILE "stripper.16.ep1" PLATFORM_EXT
1.21 +#define MMS_1_6_EP2_FILE "stripper.16.ep2" PLATFORM_EXT
1.22
1.23 HINSTANCE stripper_library = NULL;
1.24
1.25 @@ -121,7 +121,7 @@
1.26 }
1.27
1.28 char our_path[256];
1.29 - UTIL_Format(our_path, sizeof(our_path), "%s" PATH_SEP_CHAR MMS_1_4_EP1_FILE, mli->pl_path);
1.30 + UTIL_Format(our_path, sizeof(our_path), "%s" PATH_SEP_CHAR "%s", mli->pl_path, file);
1.31
1.32 return TryAndLoadLibrary(our_path);
1.33 }