patch from div0 to fix screenshot naming when -game is used
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 18 Dec 2006 17:21:02 +0000 (17:21 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 18 Dec 2006 17:21:02 +0000 (17:21 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6659 d7cf8633-e32d-0410-b094-e92efae38249

fs.c
fs.h

diff --git a/fs.c b/fs.c
index 5a849e1..50490bf 100644 (file)
--- 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 c65b852..0a9837b 100644 (file)
--- 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
 {