add fs_usercfg. defaults to "" (nothing) in oldstyle, or "~/.PACKAGErc" in

newstyle.
This commit is contained in:
Bill Currie 2001-02-10 00:40:55 +00:00
parent 4eb41da471
commit 0ffba7e3da
7 changed files with 46 additions and 7 deletions

View file

@ -303,24 +303,18 @@ void
Cmd_Exec_File (char *path)
{
char *f;
int mark;
int len;
char base[32];
QFile *file;
if ((file = Qopen (path, "r")) != NULL) {
// extract the filename base name for hunk tag
COM_FileBase (path, base);
len = COM_filelength (file);
mark = Hunk_LowMark ();
f = (char *) Hunk_AllocName (len + 1, base);
f = (char *) Hunk_TempAlloc (len + 1);
if (f) {
f[len] = 0;
Qread (file, f, len);
Qclose (file);
Cbuf_InsertText (f);
}
Hunk_FreeToLowMark (mark);
}
}