mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2025-03-23 17:31:06 +00:00
qw now links
This commit is contained in:
parent
dee1dd73ca
commit
1cd0078fca
1 changed files with 30 additions and 1 deletions
|
@ -66,7 +66,7 @@ jmp_buf host_abort;
|
|||
|
||||
double realtime; // without any filtering or bounding
|
||||
double oldrealtime; // last frame run
|
||||
|
||||
qboolean isDedicated;
|
||||
int fps_count;
|
||||
int vcrFile = -1;
|
||||
|
||||
|
@ -507,3 +507,32 @@ Host_Shutdown( void )
|
|||
VID_Shutdown();
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
===============
|
||||
Host_WriteConfiguration
|
||||
|
||||
Writes key bindings and archived cvars to config.cfg
|
||||
===============
|
||||
*/
|
||||
void Host_WriteConfiguration (void)
|
||||
{
|
||||
QFile *f;
|
||||
|
||||
// dedicated servers initialize the host but don't parse and set the
|
||||
// config.cfg cvars
|
||||
if (host_initialized & !isDedicated)
|
||||
{
|
||||
f = Qopen (va("%s/config.cfg",com_gamedir), "w");
|
||||
if (!f)
|
||||
{
|
||||
Con_Printf ("Couldn't write config.cfg.\n");
|
||||
return;
|
||||
}
|
||||
|
||||
Key_WriteBindings (f);
|
||||
Cvar_WriteVariables (f);
|
||||
|
||||
Qclose (f);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue