mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-02-21 19:01:20 +00:00
configure.in: clean up final configuration report.
cl_main.c, cl_slist.c: Make server listing expand ~
This commit is contained in:
parent
6db71530c7
commit
eb38ab097c
3 changed files with 11 additions and 6 deletions
|
@ -785,8 +785,8 @@ AC_MSG_RESULT([
|
|||
|
||||
Server support:$SV_TARGETS
|
||||
Client support:$CL_TARGETS
|
||||
|
||||
Shared game directory: $sharepath
|
||||
Unshared game directory: $userpath
|
||||
|
||||
System game data directory: $sharepath
|
||||
Per-user game data directory: $userpath
|
||||
Global configuration file: $globalconf
|
||||
])
|
||||
|
|
|
@ -1119,6 +1119,7 @@ void CL_Init (void)
|
|||
{
|
||||
FILE *servlist;
|
||||
char st[80];
|
||||
char e_path[MAX_OSPATH];
|
||||
|
||||
cls.state = ca_disconnected;
|
||||
|
||||
|
@ -1137,7 +1138,8 @@ void CL_Init (void)
|
|||
CL_InitCam ();
|
||||
Pmove_Init ();
|
||||
|
||||
if ((servlist = fopen(va("%s/servers.txt",fs_userpath->string),"r"))) {
|
||||
Qexpand_squiggle(fs_userpath->string, e_path);
|
||||
if ((servlist = fopen(va("%s/servers.txt", e_path), "r"))) {
|
||||
slist = Server_List_LoadF(servlist,slist);
|
||||
fclose(servlist);
|
||||
}
|
||||
|
|
|
@ -184,9 +184,12 @@ server_entry_t *Server_List_LoadF (FILE *f,server_entry_t *start) { // This coul
|
|||
}
|
||||
|
||||
void Server_List_Shutdown (server_entry_t *start) {
|
||||
FILE *f;
|
||||
FILE *f;
|
||||
char e_path[MAX_OSPATH];
|
||||
|
||||
if (start) {
|
||||
if ((f = fopen(va("%s/servers.txt",fs_userpath->string),"w"))) {
|
||||
Qexpand_squiggle(fs_userpath->string, e_path);
|
||||
if ((f = fopen(va("%s/servers.txt", e_path),"w"))) {
|
||||
Server_List_SaveF(f,start);
|
||||
fclose(f);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue