mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-29 20:20:43 +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_SkipPath (const char *pathname);
|
||||||
const char *QFS_FileExtension (const char *in);
|
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
|
#endif // __quakefs_h
|
||||||
|
|
|
@ -625,7 +625,9 @@ Cmd_Exec_File (cbuf_t *cbuf, const char *path, int qfs)
|
||||||
if (qfs) {
|
if (qfs) {
|
||||||
QFS_FOpenFile (path, &file);
|
QFS_FOpenFile (path, &file);
|
||||||
} else {
|
} else {
|
||||||
file = Qopen (path, "r");
|
char *newpath = expand_squiggle (path);
|
||||||
|
file = Qopen (newpath, "r");
|
||||||
|
free (newpath);
|
||||||
}
|
}
|
||||||
if (file) {
|
if (file) {
|
||||||
len = Qfilesize (file);
|
len = Qfilesize (file);
|
||||||
|
|
|
@ -1125,7 +1125,7 @@ QFS_Gamedir (const char *dir)
|
||||||
Cache_Flush ();
|
Cache_Flush ();
|
||||||
}
|
}
|
||||||
|
|
||||||
static char *
|
char *
|
||||||
expand_squiggle (const char *path)
|
expand_squiggle (const char *path)
|
||||||
{
|
{
|
||||||
char *home;
|
char *home;
|
||||||
|
|
Loading…
Reference in a new issue