mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2024-11-23 04:32:28 +00:00
uiScript resetDefaults
This commit is contained in:
parent
bad77c913d
commit
90ffa604bb
1 changed files with 11 additions and 2 deletions
|
@ -6097,9 +6097,18 @@ static void UI_RunMenuScript(char **args)
|
||||||
UI_GameType_HandleKey(0, 0, K_MOUSE1, qfalse);
|
UI_GameType_HandleKey(0, 0, K_MOUSE1, qfalse);
|
||||||
UI_GameType_HandleKey(0, 0, K_MOUSE2, qfalse);
|
UI_GameType_HandleKey(0, 0, K_MOUSE2, qfalse);
|
||||||
} else if (Q_stricmp(name, "resetDefaults") == 0) {
|
} else if (Q_stricmp(name, "resetDefaults") == 0) {
|
||||||
trap_Cmd_ExecuteText(EXEC_APPEND, "exec default.cfg\n");
|
// Makro - changed the order a bit
|
||||||
|
|
||||||
|
// First we reset the cvars, then we exec default.cfg to have
|
||||||
|
// all of them initialized with the proper values, even (c)game cvars
|
||||||
|
// when (c)game isn't loaded yet.
|
||||||
|
|
||||||
|
// Also, Controls_SetDefaults() is no longer called because we already
|
||||||
|
// set up default bindings in default.cfg
|
||||||
|
|
||||||
trap_Cmd_ExecuteText(EXEC_APPEND, "cvar_restart\n");
|
trap_Cmd_ExecuteText(EXEC_APPEND, "cvar_restart\n");
|
||||||
Controls_SetDefaults();
|
trap_Cmd_ExecuteText(EXEC_APPEND, "exec default.cfg\n");
|
||||||
|
//Controls_SetDefaults();
|
||||||
trap_Cvar_Set("com_introPlayed", "1");
|
trap_Cvar_Set("com_introPlayed", "1");
|
||||||
trap_Cmd_ExecuteText(EXEC_APPEND, "vid_restart\n");
|
trap_Cmd_ExecuteText(EXEC_APPEND, "vid_restart\n");
|
||||||
} else if (Q_stricmp(name, "getCDKey") == 0) {
|
} else if (Q_stricmp(name, "getCDKey") == 0) {
|
||||||
|
|
Loading…
Reference in a new issue