Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added: Console variable "game-save-quick-confirm"
A new alias for the existing cvar "menu-quick-ask" with a name that
better fits our naming conventions.
  • Loading branch information
danij-deng committed Jan 21, 2012
1 parent 0401ae0 commit 88af3fd
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 3 deletions.
1 change: 0 additions & 1 deletion doomsday/plugins/common/src/hu_menu.c
Expand Up @@ -1305,7 +1305,6 @@ cvartemplate_t menuCVars[] = {
{ "menu-shadow", 0, CVT_FLOAT, &cfg.menuShadow, 0, 1 },
{ "menu-patch-replacement", 0, CVT_INT, &cfg.menuPatchReplaceMode, PRM_FIRST, PRM_LAST },
{ "menu-slam", 0, CVT_BYTE, &cfg.menuSlam, 0, 1 },
{ "menu-quick-ask", 0, CVT_BYTE, &cfg.confirmQuickGameSave, 0, 1 },
{ "menu-hotkeys", 0, CVT_BYTE, &cfg.menuShortcutsEnabled, 0, 1 },
#if __JDOOM__ || __JDOOM64__
{ "menu-quitsound", 0, CVT_INT, &cfg.menuQuitSound, 0, 1 },
Expand Down
8 changes: 6 additions & 2 deletions doomsday/plugins/common/src/p_saveg.c
Expand Up @@ -370,8 +370,12 @@ static thinkerinfo_t thinkerInfo[] = {
};

cvartemplate_t cvars[] = {
{"game-save-quick-slot", CVF_NO_MAX|CVF_NO_ARCHIVE, CVT_INT, &cvarQuickSlot, -1, 0},
{NULL}
{ "game-save-quick-confirm", 0, CVT_BYTE, &cfg.confirmQuickGameSave, 0, 1 },
{ "game-save-quick-slot", CVF_NO_MAX|CVF_NO_ARCHIVE, CVT_INT, &cvarQuickSlot, -1, 0 },

// Aliases for obsolete cvars:
{ "menu-quick-ask", 0, CVT_BYTE, &cfg.confirmQuickGameSave, 0, 1 },
{NULL}
};

// CODE --------------------------------------------------------------------
Expand Down
3 changes: 3 additions & 0 deletions doomsday/plugins/jdoom/data/conhelp.txt
Expand Up @@ -308,6 +308,9 @@ desc = Color of HUD messages blue component.
[msg-blink]
desc = HUD messages blink for this number of tics when printed.

[game-save-quick-confirm]
desc = 1=Ask me to confirm when quick saving/loading.

[game-save-quick-slot]
desc = Current "quick" save slot number. -1=None (default).

Expand Down
3 changes: 3 additions & 0 deletions doomsday/plugins/jdoom64/data/conhelp.txt
Expand Up @@ -307,6 +307,9 @@ desc = Color of HUD messages blue component.
[msg-blink]
desc = HUD messages blink for this number of tics when printed.

[game-save-quick-confirm]
desc = 1=Ask me to confirm when quick saving/loading.

[game-save-quick-slot]
desc = Current "quick" save slot number. -1=None (default).

Expand Down
3 changes: 3 additions & 0 deletions doomsday/plugins/jheretic/data/conhelp.txt
Expand Up @@ -317,6 +317,9 @@ desc = Color of HUD messages blue component.
[msg-blink]
desc = HUD messages blink for this number of tics when printed.

[game-save-quick-confirm]
desc = 1=Ask me to confirm when quick saving/loading.

[game-save-quick-slot]
desc = Current "quick" save slot number. -1=None (default).

Expand Down
3 changes: 3 additions & 0 deletions doomsday/plugins/jhexen/data/conhelp.txt
Expand Up @@ -356,6 +356,9 @@ desc = Current hub.
[game-music]
desc = Currently playing music (id).

[game-save-quick-confirm]
desc = 1=Ask me to confirm when quick saving/loading.

[game-save-quick-slot]
desc = Current "quick" save slot number. -1=None (default).

Expand Down

0 comments on commit 88af3fd

Please sign in to comment.