mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-12-08 19:08:31 +00:00
Fixed crash on Linux when loading via gameinfo.txt on Left 4 Dead 2 (bug 4111, r=dvander).
This commit is contained in:
parent
b90b93e849
commit
25a63bbdaa
@ -56,7 +56,7 @@ static int isgd_shutdown_index = -1;
|
|||||||
#if defined _WIN32
|
#if defined _WIN32
|
||||||
#define SERVER_NAME "server.dll"
|
#define SERVER_NAME "server.dll"
|
||||||
#elif defined __linux__
|
#elif defined __linux__
|
||||||
#define SERVER_NAME "server_i486.so"
|
#define SERVER_NAME "server" BINARY_SUFFIX
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
@ -175,6 +175,12 @@ mm_DetectGameInformation()
|
|||||||
|
|
||||||
game_info_detected = 1;
|
game_info_detected = 1;
|
||||||
|
|
||||||
|
if (gamedll_path_count == 0)
|
||||||
|
{
|
||||||
|
mm_LogFatal("Could not detect any valid game paths in gameinfo.txt");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user