mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
Added a temporary hack to make ~/.quakeforgerc work again.
This commit is contained in:
parent
9297d2b192
commit
3aecdcf42c
3 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -1125,7 +1125,7 @@ QFS_Gamedir (const char *dir)
|
|||
Cache_Flush ();
|
||||
}
|
||||
|
||||
static char *
|
||||
char *
|
||||
expand_squiggle (const char *path)
|
||||
{
|
||||
char *home;
|
||||
|
|
Loading…
Reference in a new issue