mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 09:51:41 +00:00
read the config files
This commit is contained in:
parent
2262d02b1a
commit
1a28ee2aaf
1 changed files with 19 additions and 0 deletions
|
@ -59,6 +59,8 @@ cbuf_t *qtv_cbuf;
|
|||
|
||||
cvar_t *qtv_console_plugin;
|
||||
cvar_t *qtv_mem_size;
|
||||
cvar_t *fs_globalcfg;
|
||||
cvar_t *fs_usercfg;
|
||||
|
||||
static void
|
||||
qtv_memory_init (void)
|
||||
|
@ -101,6 +103,23 @@ qtv_init (void)
|
|||
Cmd_StuffCmds (qtv_cbuf);
|
||||
Cbuf_Execute_Sets (qtv_cbuf);
|
||||
|
||||
fs_globalcfg = Cvar_Get ("fs_globalcfg", FS_GLOBALCFG,
|
||||
CVAR_ROM, 0, "global configuration file");
|
||||
Cmd_Exec_File (qtv_cbuf, fs_globalcfg->string, 0);
|
||||
Cbuf_Execute_Sets (qtv_cbuf);
|
||||
|
||||
// execute +set again to override the config file
|
||||
Cmd_StuffCmds (qtv_cbuf);
|
||||
Cbuf_Execute_Sets (qtv_cbuf);
|
||||
fs_usercfg = Cvar_Get ("fs_usercfg", FS_USERCFG,
|
||||
CVAR_ROM, 0, "user configuration file");
|
||||
Cmd_Exec_File (qtv_cbuf, fs_usercfg->string, 0);
|
||||
Cbuf_Execute_Sets (qtv_cbuf);
|
||||
|
||||
// execute +set again to override the config file
|
||||
Cmd_StuffCmds (qtv_cbuf);
|
||||
Cbuf_Execute_Sets (qtv_cbuf);
|
||||
|
||||
qtv_memory_init ();
|
||||
|
||||
QFS_Init ("qw");
|
||||
|
|
Loading…
Reference in a new issue