mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-05-31 17:21:46 +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
|
Server support:$SV_TARGETS
|
||||||
Client support:$CL_TARGETS
|
Client support:$CL_TARGETS
|
||||||
|
|
||||||
Shared game directory: $sharepath
|
System game data directory: $sharepath
|
||||||
Unshared game directory: $userpath
|
Per-user game data directory: $userpath
|
||||||
Global configuration file: $globalconf
|
Global configuration file: $globalconf
|
||||||
])
|
])
|
||||||
|
|
|
@ -1119,6 +1119,7 @@ void CL_Init (void)
|
||||||
{
|
{
|
||||||
FILE *servlist;
|
FILE *servlist;
|
||||||
char st[80];
|
char st[80];
|
||||||
|
char e_path[MAX_OSPATH];
|
||||||
|
|
||||||
cls.state = ca_disconnected;
|
cls.state = ca_disconnected;
|
||||||
|
|
||||||
|
@ -1137,7 +1138,8 @@ void CL_Init (void)
|
||||||
CL_InitCam ();
|
CL_InitCam ();
|
||||||
Pmove_Init ();
|
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);
|
slist = Server_List_LoadF(servlist,slist);
|
||||||
fclose(servlist);
|
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) {
|
void Server_List_Shutdown (server_entry_t *start) {
|
||||||
FILE *f;
|
FILE *f;
|
||||||
|
char e_path[MAX_OSPATH];
|
||||||
|
|
||||||
if (start) {
|
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);
|
Server_List_SaveF(f,start);
|
||||||
fclose(f);
|
fclose(f);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue