From 09cb883bb3aa09abd370bae89c4588aa02339a2d Mon Sep 17 00:00:00 2001 From: havoc Date: Mon, 18 Dec 2006 17:21:02 +0000 Subject: [PATCH] patch from div0 to fix screenshot naming when -game is used git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6659 d7cf8633-e32d-0410-b094-e92efae38249 --- fs.c | 2 +- fs.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/fs.c b/fs.c index 5a849e14..50490bfb 100644 --- a/fs.c +++ b/fs.c @@ -1105,7 +1105,7 @@ void FS_Rescan_f (void) fs_modified = true; FS_AddGameHierarchy (fs_gamedirs[i]); // update the com_modname (used server info) - strlcpy (com_modname, com_argv[i], sizeof (com_modname)); + strlcpy (com_modname, fs_gamedirs[i], sizeof (com_modname)); } // set the default screenshot name to either the mod name or the diff --git a/fs.h b/fs.h index c65b8525..0a9837b1 100644 --- a/fs.h +++ b/fs.h @@ -65,6 +65,7 @@ int FS_UnGetc (qfile_t* file, unsigned char c); int FS_Seek (qfile_t* file, fs_offset_t offset, int whence); fs_offset_t FS_Tell (qfile_t* file); void FS_Purge (qfile_t* file); +qboolean FS_ChangeGameDir(const char *string); typedef struct fssearch_s { -- 2.39.2