From: cloudwalk Date: Wed, 15 Jul 2020 14:59:07 +0000 (+0000) Subject: Don't crash the game if a "nasty" -game name is rejected, matches behavior of missing... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=dc9916ff540094fee6bde0fff89717f5453a573a;p=xonotic%2Fdarkplaces.git Don't crash the game if a "nasty" -game name is rejected, matches behavior of missing -game name git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12818 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/fs.c b/fs.c index c15b8ba0..4b98e32e 100644 --- a/fs.c +++ b/fs.c @@ -2122,7 +2122,7 @@ static void FS_Init_Dir (void) i++; p = FS_CheckGameDir(sys.argv[i]); if(!p) - Sys_Error("Nasty -game name rejected: %s", sys.argv[i]); + Con_Printf("WARNING: Nasty -game name rejected: %s\n", sys.argv[i]); if(p == fs_checkgamedir_missing) Con_Printf(CON_WARN "WARNING: -game %s%s/ not found!\n", fs_basedir, sys.argv[i]); // add the gamedir to the list of active gamedirs