Added a temporary hack to make ~/.quakeforgerc work again.

This commit is contained in:
Brian Koropoff 2003-05-25 05:40:25 +00:00
parent 9297d2b192
commit 3aecdcf42c
3 changed files with 7 additions and 2 deletions

View file

@ -103,4 +103,7 @@ char *QFS_CompressPath (const char *pth);
const char *QFS_SkipPath (const char *pathname);
const char *QFS_FileExtension (const char *in);
// FIXME: This is here temporarily until fs_usercfg gets sorted out
char *expand_squiggle (const char *path);
#endif // __quakefs_h

View file

@ -625,7 +625,9 @@ Cmd_Exec_File (cbuf_t *cbuf, const char *path, int qfs)
if (qfs) {
QFS_FOpenFile (path, &file);
} else {
file = Qopen (path, "r");
char *newpath = expand_squiggle (path);
file = Qopen (newpath, "r");
free (newpath);
}
if (file) {
len = Qfilesize (file);

View file

@ -1125,7 +1125,7 @@ QFS_Gamedir (const char *dir)
Cache_Flush ();
}
static char *
char *
expand_squiggle (const char *path)
{
char *home;