From 25a63bbdaa149cdf796b4af088cdf22313b29fcf Mon Sep 17 00:00:00 2001 From: Scott Ehlert Date: Sun, 15 Nov 2009 22:52:54 -0500 Subject: [PATCH] Fixed crash on Linux when loading via gameinfo.txt on Left 4 Dead 2 (bug 4111, r=dvander). --- loader/gamedll.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/loader/gamedll.cpp b/loader/gamedll.cpp index 9209cbd..2ec7b94 100644 --- a/loader/gamedll.cpp +++ b/loader/gamedll.cpp @@ -56,7 +56,7 @@ static int isgd_shutdown_index = -1; #if defined _WIN32 #define SERVER_NAME "server.dll" #elif defined __linux__ -#define SERVER_NAME "server_i486.so" +#define SERVER_NAME "server" BINARY_SUFFIX #endif static bool @@ -175,6 +175,12 @@ mm_DetectGameInformation() 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; }