]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
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 5a849e1466548dc2fbb9392390f6bb09b367f2b9..50490bfba1c0c11bc16b84629459968b01940942 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 c65b8525808f4496f0fc876a080c919ff896b2c0..0a9837b1e7903982a682814821c4d3404b1b00b3 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
 {