From dc9916ff540094fee6bde0fff89717f5453a573a Mon Sep 17 00:00:00 2001 From: cloudwalk Date: Wed, 15 Jul 2020 14:59:07 +0000 Subject: [PATCH] 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 --- fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2