mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-26 06:45:37 +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)
|
if (strncmp(ptr, "_amxx", 5) == 0)
|
||||||
{
|
{
|
||||||
char *p = ptr + 5;
|
char *p = ptr + 5;
|
||||||
if (strncmp(p, ".dll", 4) == 0)
|
if (strncmp(p, ".dll", 4) == 0 || strncmp(p, ".dylib", 6) == 0)
|
||||||
{
|
{
|
||||||
foundAmxx = true;
|
foundAmxx = true;
|
||||||
break;
|
break;
|
||||||
@ -881,7 +881,7 @@ bool ConvertModuleName(const char *pathString, String &path)
|
|||||||
path.append(PATH_SEP_CHAR);
|
path.append(PATH_SEP_CHAR);
|
||||||
path.append(tmpname);
|
path.append(tmpname);
|
||||||
path.append("_amxx");
|
path.append("_amxx");
|
||||||
#if defined(__linux__) || defined(__APPLE__)
|
#if defined(__linux__)
|
||||||
#if defined AMD64 || PAWN_CELL_SIZE==64
|
#if defined AMD64 || PAWN_CELL_SIZE==64
|
||||||
path.append("_amd64");
|
path.append("_amd64");
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user