Fix cheevos messages
This commit is contained in:
parent
ad5d78b63e
commit
f190909aae
|
@ -1499,11 +1499,15 @@ static int generic_action_ok_help(const char *path,
|
||||||
entry_idx, ACTION_OK_DL_HELP);
|
entry_idx, ACTION_OK_DL_HELP);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
extern unsigned menu_dialog_current_id;
|
||||||
|
|
||||||
static int action_ok_cheevos(const char *path,
|
static int action_ok_cheevos(const char *path,
|
||||||
const char *label, unsigned type, size_t idx, size_t entry_idx)
|
const char *label, unsigned type, size_t idx, size_t entry_idx)
|
||||||
{
|
{
|
||||||
unsigned new_id = type - MENU_SETTINGS_CHEEVOS_START;
|
unsigned new_id = type - MENU_SETTINGS_CHEEVOS_START;
|
||||||
|
|
||||||
|
menu_dialog_current_id = new_id;
|
||||||
|
|
||||||
return generic_action_ok_help(path, label, new_id, idx, entry_idx,
|
return generic_action_ok_help(path, label, new_id, idx, entry_idx,
|
||||||
MENU_ENUM_LABEL_CHEEVOS_DESCRIPTION,
|
MENU_ENUM_LABEL_CHEEVOS_DESCRIPTION,
|
||||||
MENU_DIALOG_HELP_CHEEVOS_DESCRIPTION);
|
MENU_DIALOG_HELP_CHEEVOS_DESCRIPTION);
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
|
|
||||||
static bool menu_dialog_pending_push = false;
|
static bool menu_dialog_pending_push = false;
|
||||||
static bool menu_dialog_active = false;
|
static bool menu_dialog_active = false;
|
||||||
static unsigned menu_dialog_current_id = 0;
|
unsigned menu_dialog_current_id = 0;
|
||||||
static enum menu_dialog_type menu_dialog_current_type = MENU_DIALOG_NONE;
|
static enum menu_dialog_type menu_dialog_current_type = MENU_DIALOG_NONE;
|
||||||
static enum msg_hash_enums menu_dialog_current_msg = MSG_UNKNOWN;
|
static enum msg_hash_enums menu_dialog_current_msg = MSG_UNKNOWN;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue