From 756d48702d724e2867f14355595c758d313208d2 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 2 Feb 2017 06:38:21 +0100 Subject: [PATCH] Add sublabels --- intl/msg_hash_us.h | 6 ++++++ menu/cbs/menu_cbs_sublabel.c | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/intl/msg_hash_us.h b/intl/msg_hash_us.h index 1d82ea57c1..4c03b0e62e 100644 --- a/intl/msg_hash_us.h +++ b/intl/msg_hash_us.h @@ -2674,3 +2674,9 @@ MSG_HASH(MENU_ENUM_SUBLABEL_SCAN_FILE, MSG_HASH(MENU_ENUM_SUBLABEL_VIDEO_SWAP_INTERVAL, "Uses a custom swap interval for Vsync. Set this to effectively halve monitor refresh rate." ) +MSG_HASH(MENU_ENUM_SUBLABEL_SORT_SAVEFILES_ENABLE, + "Sort save files in folders named after the core used." + ) +MSG_HASH(MENU_ENUM_SUBLABEL_SORT_SAVESTATES_ENABLE, + "Sort save states in folders named after the core used." + ) diff --git a/menu/cbs/menu_cbs_sublabel.c b/menu/cbs/menu_cbs_sublabel.c index 40c4647eb6..8de73a308b 100644 --- a/menu/cbs/menu_cbs_sublabel.c +++ b/menu/cbs/menu_cbs_sublabel.c @@ -204,6 +204,8 @@ default_sublabel_macro(action_bind_sublabel_netplay_disconnect, MENU_ default_sublabel_macro(action_bind_sublabel_scan_file, MENU_ENUM_SUBLABEL_SCAN_FILE) default_sublabel_macro(action_bind_sublabel_scan_directory, MENU_ENUM_SUBLABEL_SCAN_DIRECTORY) default_sublabel_macro(action_bind_sublabel_video_swap_interval, MENU_ENUM_SUBLABEL_VIDEO_SWAP_INTERVAL) +default_sublabel_macro(action_bind_sublabel_sort_savefiles_enable, MENU_ENUM_SUBLABEL_SORT_SAVEFILES_ENABLE) +default_sublabel_macro(action_bind_sublabel_sort_savestates_enable, MENU_ENUM_SUBLABEL_SORT_SAVESTATES_ENABLE) static int action_bind_sublabel_cheevos_entry( file_list_t *list, @@ -265,6 +267,12 @@ int menu_cbs_init_bind_sublabel(menu_file_list_cbs_t *cbs, { switch (cbs->enum_idx) { + case MENU_ENUM_LABEL_SORT_SAVEFILES_ENABLE: + BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_sort_savefiles_enable); + break; + case MENU_ENUM_LABEL_SORT_SAVESTATES_ENABLE: + BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_sort_savestates_enable); + break; case MENU_ENUM_LABEL_VIDEO_SWAP_INTERVAL: BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_video_swap_interval); break;