mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 14:25:38 +03:00
Fixed module loading on OS X (bug 5601, r=dvander).
Former-commit-id: 3d0277c1f0
This commit is contained in:
parent
fe2e9dbfc2
commit
e3d750597a
@ -835,7 +835,7 @@ bool ConvertModuleName(const char *pathString, String &path)
|
||||
if (strncmp(ptr, "_amxx", 5) == 0)
|
||||
{
|
||||
char *p = ptr + 5;
|
||||
if (strncmp(p, ".dll", 4) == 0)
|
||||
if (strncmp(p, ".dll", 4) == 0 || strncmp(p, ".dylib", 6) == 0)
|
||||
{
|
||||
foundAmxx = true;
|
||||
break;
|
||||
@ -881,7 +881,7 @@ bool ConvertModuleName(const char *pathString, String &path)
|
||||
path.append(PATH_SEP_CHAR);
|
||||
path.append(tmpname);
|
||||
path.append("_amxx");
|
||||
#if defined(__linux__) || defined(__APPLE__)
|
||||
#if defined(__linux__)
|
||||
#if defined AMD64 || PAWN_CELL_SIZE==64
|
||||
path.append("_amd64");
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user