mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2024-11-28 10:24:20 +01:00
Hack to account for Dota server bin name being "libserver".
This commit is contained in:
parent
a2400e3681
commit
18bdaf4732
@ -73,10 +73,13 @@ static bool g_is_source2 = false;
|
||||
#define PLATFORM_NAME "osx32"
|
||||
#endif
|
||||
#elif defined __linux__
|
||||
#define SERVER_NAME "server" LIB_SUFFIX
|
||||
#if defined __amd64__
|
||||
// hackhack - source2 uses libserver as name on POSIX, but source1 x64 does not
|
||||
// (but source1 x64 is also client-only right now so what-ev)
|
||||
#define SERVER_NAME "libserver" LIB_SUFFIX
|
||||
#define PLATFORM_NAME "linuxsteamrt64"
|
||||
#else
|
||||
#define SERVER_NAME "server" LIB_SUFFIX
|
||||
#define PLATFORM_NAME "linuxsteamrt32"
|
||||
#endif
|
||||
#endif
|
||||
|
@ -114,7 +114,12 @@ mm_LoadMetamodLibrary(MetamodBackend backend, char *buffer, size_t maxlength)
|
||||
return false;
|
||||
|
||||
len = strlen(mm_path);
|
||||
temp_len = strlen("server" LIBRARY_EXT);
|
||||
|
||||
const char *pLastSlash = strrchr(mm_path, PATH_SEP_CHAR);
|
||||
if (!pLastSlash)
|
||||
return false;
|
||||
|
||||
temp_len = strlen(&pLastSlash[1]);
|
||||
if (len < temp_len)
|
||||
return false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user