Fix cheevos messages

This commit is contained in:
twinaphex 2016-11-05 21:55:32 +01:00
parent ad5d78b63e
commit f190909aae
2 changed files with 5 additions and 1 deletions

View File

@ -1499,11 +1499,15 @@ static int generic_action_ok_help(const char *path,
entry_idx, ACTION_OK_DL_HELP);
}
extern unsigned menu_dialog_current_id;
static int action_ok_cheevos(const char *path,
const char *label, unsigned type, size_t idx, size_t entry_idx)
{
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,
MENU_ENUM_LABEL_CHEEVOS_DESCRIPTION,
MENU_DIALOG_HELP_CHEEVOS_DESCRIPTION);

View File

@ -38,7 +38,7 @@
static bool menu_dialog_pending_push = 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 msg_hash_enums menu_dialog_current_msg = MSG_UNKNOWN;