diff --git a/config.def.h b/config.def.h index 6e30fe126c..418b48244c 100644 --- a/config.def.h +++ b/config.def.h @@ -64,6 +64,7 @@ static bool materialui_icons_enable = true; static const bool def_history_list_enable = true; static const bool def_playlist_entry_remove = true; +static const bool def_playlist_entry_rename = true; static const unsigned int def_user_language = 0; diff --git a/configuration.c b/configuration.c index 96f0153c0e..f8106a26e8 100644 --- a/configuration.c +++ b/configuration.c @@ -1255,6 +1255,7 @@ static struct config_bool_setting *populate_settings_bool(settings_t *settings, SETTING_BOOL("savestate_thumbnail_enable", &settings->bools.savestate_thumbnail_enable, true, savestate_thumbnail_enable, false); SETTING_BOOL("history_list_enable", &settings->bools.history_list_enable, true, def_history_list_enable, false); SETTING_BOOL("playlist_entry_remove", &settings->bools.playlist_entry_remove, true, def_playlist_entry_remove, false); + SETTING_BOOL("playlist_entry_rename", &settings->bools.playlist_entry_rename, true, def_playlist_entry_rename, false); SETTING_BOOL("game_specific_options", &settings->bools.game_specific_options, true, default_game_specific_options, false); SETTING_BOOL("auto_overrides_enable", &settings->bools.auto_overrides_enable, true, default_auto_overrides_enable, false); SETTING_BOOL("auto_remaps_enable", &settings->bools.auto_remaps_enable, true, default_auto_remaps_enable, false); diff --git a/configuration.h b/configuration.h index 77a0f5f078..9f34e0cba2 100644 --- a/configuration.h +++ b/configuration.h @@ -190,6 +190,7 @@ typedef struct settings bool auto_screenshot_filename; bool history_list_enable; bool playlist_entry_remove; + bool playlist_entry_rename; bool rewind_enable; bool pause_nonactive; bool block_sram_overwrite; diff --git a/intl/msg_hash_chs.h b/intl/msg_hash_chs.h index 2cc5e83d20..e90fe9fcbe 100644 --- a/intl/msg_hash_chs.h +++ b/intl/msg_hash_chs.h @@ -3017,9 +3017,9 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_CORE_DELETE, "Delete core") MSG_HASH(MENU_ENUM_SUBLABEL_CORE_DELETE, "Remove this core from disk.") -MSG_HASH(MENU_ENUM_LABEL_VALUE_PLAYLIST_ENTRY_RENAME, +MSG_HASH(MENU_ENUM_LABEL_VALUE_RENAME_ENTRY, "Rename the title of the entry.") -MSG_HASH(MENU_ENUM_LABEL_PLAYLIST_ENTRY_RENAME, +MSG_HASH(MENU_ENUM_LABEL_RENAME_ENTRY, "Rename") MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_FRAMEBUFFER_OPACITY, "Framebuffer Opacity") @@ -3059,3 +3059,7 @@ MSG_HASH(MENU_ENUM_SUBLABEL_XMB_MAIN_MENU_ENABLE_SETTINGS, "Enables the Settings tab. A restart is required for the tab to appear.") MSG_HASH(MENU_ENUM_SUBLABEL_XMB_SHOW_SETTINGS_PASSWORD, "Supplying a password when hiding the settings tab makes it possible to later restore it from the menu, by going to the Main Menu tab, selecting Enable Settings Tab and entering the password.") +MSG_HASH(MENU_ENUM_SUBLABEL_PLAYLIST_ENTRY_RENAME, + "Allow the user to rename entries in collections.") +MSG_HASH(MENU_ENUM_LABEL_VALUE_PLAYLIST_ENTRY_RENAME, + "Allow to rename entries") diff --git a/intl/msg_hash_cht.h b/intl/msg_hash_cht.h index a1bc897be9..48078f3aea 100644 --- a/intl/msg_hash_cht.h +++ b/intl/msg_hash_cht.h @@ -3017,9 +3017,9 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_CORE_DELETE, "Delete core") MSG_HASH(MENU_ENUM_SUBLABEL_CORE_DELETE, "Remove this core from disk.") -MSG_HASH(MENU_ENUM_LABEL_VALUE_PLAYLIST_ENTRY_RENAME, +MSG_HASH(MENU_ENUM_LABEL_VALUE_RENAME_ENTRY, "Rename the title of the entry.") -MSG_HASH(MENU_ENUM_LABEL_PLAYLIST_ENTRY_RENAME, +MSG_HASH(MENU_ENUM_LABEL_RENAME_ENTRY, "Rename") MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_FRAMEBUFFER_OPACITY, "Framebuffer Opacity") @@ -3059,3 +3059,7 @@ MSG_HASH(MENU_ENUM_SUBLABEL_XMB_MAIN_MENU_ENABLE_SETTINGS, "Enables the Settings tab. A restart is required for the tab to appear.") MSG_HASH(MENU_ENUM_SUBLABEL_XMB_SHOW_SETTINGS_PASSWORD, "Supplying a password when hiding the settings tab makes it possible to later restore it from the menu, by going to the Main Menu tab, selecting Enable Settings Tab and entering the password.") +MSG_HASH(MENU_ENUM_SUBLABEL_PLAYLIST_ENTRY_RENAME, + "Allow the user to rename entries in collections.") +MSG_HASH(MENU_ENUM_LABEL_VALUE_PLAYLIST_ENTRY_RENAME, + "Allow to rename entries") diff --git a/intl/msg_hash_de.h b/intl/msg_hash_de.h index c8e297d1fe..895c3b6603 100644 --- a/intl/msg_hash_de.h +++ b/intl/msg_hash_de.h @@ -3011,9 +3011,9 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_CORE_DELETE, "Delete core") MSG_HASH(MENU_ENUM_SUBLABEL_CORE_DELETE, "Remove this core from disk.") -MSG_HASH(MENU_ENUM_LABEL_VALUE_PLAYLIST_ENTRY_RENAME, +MSG_HASH(MENU_ENUM_LABEL_VALUE_RENAME_ENTRY, "Rename the title of the entry.") -MSG_HASH(MENU_ENUM_LABEL_PLAYLIST_ENTRY_RENAME, +MSG_HASH(MENU_ENUM_LABEL_RENAME_ENTRY, "Rename") MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_FRAMEBUFFER_OPACITY, "Framebuffer Opacity") @@ -3053,3 +3053,7 @@ MSG_HASH(MENU_ENUM_SUBLABEL_XMB_MAIN_MENU_ENABLE_SETTINGS, "Enables the Settings tab. A restart is required for the tab to appear.") MSG_HASH(MENU_ENUM_SUBLABEL_XMB_SHOW_SETTINGS_PASSWORD, "Supplying a password when hiding the settings tab makes it possible to later restore it from the menu, by going to the Main Menu tab, selecting Enable Settings Tab and entering the password.") +MSG_HASH(MENU_ENUM_SUBLABEL_PLAYLIST_ENTRY_RENAME, + "Allow the user to rename entries in collections.") +MSG_HASH(MENU_ENUM_LABEL_VALUE_PLAYLIST_ENTRY_RENAME, + "Allow to rename entries") diff --git a/intl/msg_hash_eo.h b/intl/msg_hash_eo.h index 1fbfbeb151..f66683ce80 100644 --- a/intl/msg_hash_eo.h +++ b/intl/msg_hash_eo.h @@ -2880,9 +2880,9 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_CORE_DELETE, "Delete core") MSG_HASH(MENU_ENUM_SUBLABEL_CORE_DELETE, "Remove this core from disk.") -MSG_HASH(MENU_ENUM_LABEL_VALUE_PLAYLIST_ENTRY_RENAME, +MSG_HASH(MENU_ENUM_LABEL_VALUE_RENAME_ENTRY, "Rename the title of the entry.") -MSG_HASH(MENU_ENUM_LABEL_PLAYLIST_ENTRY_RENAME, +MSG_HASH(MENU_ENUM_LABEL_RENAME_ENTRY, "Rename") MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_FRAMEBUFFER_OPACITY, "Framebuffer Opacity") @@ -2922,3 +2922,7 @@ MSG_HASH(MENU_ENUM_SUBLABEL_XMB_MAIN_MENU_ENABLE_SETTINGS, "Enables the Settings tab. A restart is required for the tab to appear.") MSG_HASH(MENU_ENUM_SUBLABEL_XMB_SHOW_SETTINGS_PASSWORD, "Supplying a password when hiding the settings tab makes it possible to later restore it from the menu, by going to the Main Menu tab, selecting Enable Settings Tab and entering the password.") +MSG_HASH(MENU_ENUM_SUBLABEL_PLAYLIST_ENTRY_RENAME, + "Allow the user to rename entries in collections.") +MSG_HASH(MENU_ENUM_LABEL_VALUE_PLAYLIST_ENTRY_RENAME, + "Allow to rename entries") diff --git a/intl/msg_hash_fr.h b/intl/msg_hash_fr.h index c2215e8bd9..c649015bad 100644 --- a/intl/msg_hash_fr.h +++ b/intl/msg_hash_fr.h @@ -3049,9 +3049,9 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_CORE_DELETE, "Delete core") MSG_HASH(MENU_ENUM_SUBLABEL_CORE_DELETE, "Remove this core from disk.") -MSG_HASH(MENU_ENUM_LABEL_VALUE_PLAYLIST_ENTRY_RENAME, +MSG_HASH(MENU_ENUM_LABEL_VALUE_RENAME_ENTRY, "Rename the title of the entry.") -MSG_HASH(MENU_ENUM_LABEL_PLAYLIST_ENTRY_RENAME, +MSG_HASH(MENU_ENUM_LABEL_RENAME_ENTRY, "Rename") MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_FRAMEBUFFER_OPACITY, "Framebuffer Opacity") @@ -3091,3 +3091,7 @@ MSG_HASH(MENU_ENUM_SUBLABEL_XMB_MAIN_MENU_ENABLE_SETTINGS, "Enables the Settings tab. A restart is required for the tab to appear.") MSG_HASH(MENU_ENUM_SUBLABEL_XMB_SHOW_SETTINGS_PASSWORD, "Supplying a password when hiding the settings tab makes it possible to later restore it from the menu, by going to the Main Menu tab, selecting Enable Settings Tab and entering the password.") +MSG_HASH(MENU_ENUM_SUBLABEL_PLAYLIST_ENTRY_RENAME, + "Allow the user to rename entries in collections.") +MSG_HASH(MENU_ENUM_LABEL_VALUE_PLAYLIST_ENTRY_RENAME, + "Allow to rename entries") diff --git a/intl/msg_hash_it.h b/intl/msg_hash_it.h index 5440d64028..07bf6d836b 100644 --- a/intl/msg_hash_it.h +++ b/intl/msg_hash_it.h @@ -3103,9 +3103,9 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_CORE_DELETE, "Cancella core") MSG_HASH(MENU_ENUM_SUBLABEL_CORE_DELETE, "Rimuove questo core dal disco.") -MSG_HASH(MENU_ENUM_SUBLABEL_PLAYLIST_ENTRY_RENAME, +MSG_HASH(MENU_ENUM_SUBLABEL_RENAME_ENTRY, "Rinomina la voce del titolo.") -MSG_HASH(MENU_ENUM_LABEL_VALUE_PLAYLIST_ENTRY_RENAME, +MSG_HASH(MENU_ENUM_LABEL_VALUE_RENAME_ENTRY, "Rinomina") MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_FRAMEBUFFER_OPACITY, "Opacità Framebuffer") @@ -3145,3 +3145,7 @@ MSG_HASH(MENU_ENUM_SUBLABEL_XMB_MAIN_MENU_ENABLE_SETTINGS, "Enables the Settings tab. A restart is required for the tab to appear.") MSG_HASH(MENU_ENUM_SUBLABEL_XMB_SHOW_SETTINGS_PASSWORD, "Supplying a password when hiding the settings tab makes it possible to later restore it from the menu, by going to the Main Menu tab, selecting Enable Settings Tab and entering the password.") +MSG_HASH(MENU_ENUM_SUBLABEL_PLAYLIST_ENTRY_RENAME, + "Allow the user to rename entries in collections.") +MSG_HASH(MENU_ENUM_LABEL_VALUE_PLAYLIST_ENTRY_RENAME, + "Allow to rename entries") diff --git a/intl/msg_hash_ja.h b/intl/msg_hash_ja.h index b8b2cf8e4c..b79a1dcb09 100644 --- a/intl/msg_hash_ja.h +++ b/intl/msg_hash_ja.h @@ -3003,9 +3003,9 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_CORE_DELETE, "Delete core") MSG_HASH(MENU_ENUM_SUBLABEL_CORE_DELETE, "Remove this core from disk.") -MSG_HASH(MENU_ENUM_LABEL_VALUE_PLAYLIST_ENTRY_RENAME, +MSG_HASH(MENU_ENUM_LABEL_VALUE_RENAME_ENTRY, "Rename the title of the entry.") -MSG_HASH(MENU_ENUM_LABEL_PLAYLIST_ENTRY_RENAME, +MSG_HASH(MENU_ENUM_LABEL_RENAME_ENTRY, "Rename") MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_FRAMEBUFFER_OPACITY, "Framebuffer Opacity") @@ -3045,3 +3045,7 @@ MSG_HASH(MENU_ENUM_SUBLABEL_XMB_MAIN_MENU_ENABLE_SETTINGS, "Enables the Settings tab. A restart is required for the tab to appear.") MSG_HASH(MENU_ENUM_SUBLABEL_XMB_SHOW_SETTINGS_PASSWORD, "Supplying a password when hiding the settings tab makes it possible to later restore it from the menu, by going to the Main Menu tab, selecting Enable Settings Tab and entering the password.") +MSG_HASH(MENU_ENUM_SUBLABEL_PLAYLIST_ENTRY_RENAME, + "Allow the user to rename entries in collections.") +MSG_HASH(MENU_ENUM_LABEL_VALUE_PLAYLIST_ENTRY_RENAME, + "Allow to rename entries") diff --git a/intl/msg_hash_ko.h b/intl/msg_hash_ko.h index 3ff5018be1..66e7dafb54 100644 --- a/intl/msg_hash_ko.h +++ b/intl/msg_hash_ko.h @@ -3012,9 +3012,9 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_CORE_DELETE, "Delete core") MSG_HASH(MENU_ENUM_SUBLABEL_CORE_DELETE, "Remove this core from disk.") -MSG_HASH(MENU_ENUM_LABEL_VALUE_PLAYLIST_ENTRY_RENAME, +MSG_HASH(MENU_ENUM_LABEL_VALUE_RENAME_ENTRY, "Rename the title of the entry.") -MSG_HASH(MENU_ENUM_LABEL_PLAYLIST_ENTRY_RENAME, +MSG_HASH(MENU_ENUM_LABEL_RENAME_ENTRY, "Rename") MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_FRAMEBUFFER_OPACITY, "Framebuffer Opacity") @@ -3054,3 +3054,7 @@ MSG_HASH(MENU_ENUM_SUBLABEL_XMB_MAIN_MENU_ENABLE_SETTINGS, "Enables the Settings tab. A restart is required for the tab to appear.") MSG_HASH(MENU_ENUM_SUBLABEL_XMB_SHOW_SETTINGS_PASSWORD, "Supplying a password when hiding the settings tab makes it possible to later restore it from the menu, by going to the Main Menu tab, selecting Enable Settings Tab and entering the password.") +MSG_HASH(MENU_ENUM_SUBLABEL_PLAYLIST_ENTRY_RENAME, + "Allow the user to rename entries in collections.") +MSG_HASH(MENU_ENUM_LABEL_VALUE_PLAYLIST_ENTRY_RENAME, + "Allow to rename entries") diff --git a/intl/msg_hash_lbl.h b/intl/msg_hash_lbl.h index 1c267fbb34..3a99b0ee54 100644 --- a/intl/msg_hash_lbl.h +++ b/intl/msg_hash_lbl.h @@ -1301,3 +1301,5 @@ MSG_HASH(MENU_ENUM_LABEL_GOTO_VIDEO, "goto_video") MSG_HASH(MENU_ENUM_LABEL_MATERIALUI_ICONS_ENABLE, "materialui_icons_enable") +MSG_HASH(MENU_ENUM_LABEL_RENAME_ENTRY, + "rename_entry") diff --git a/intl/msg_hash_nl.h b/intl/msg_hash_nl.h index b434f8ccd0..c169236324 100644 --- a/intl/msg_hash_nl.h +++ b/intl/msg_hash_nl.h @@ -2880,9 +2880,9 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_CORE_DELETE, "Delete core") MSG_HASH(MENU_ENUM_SUBLABEL_CORE_DELETE, "Remove this core from disk.") -MSG_HASH(MENU_ENUM_LABEL_VALUE_PLAYLIST_ENTRY_RENAME, +MSG_HASH(MENU_ENUM_LABEL_VALUE_RENAME_ENTRY, "Rename the title of the entry.") -MSG_HASH(MENU_ENUM_LABEL_PLAYLIST_ENTRY_RENAME, +MSG_HASH(MENU_ENUM_LABEL_RENAME_ENTRY, "Rename") MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_FRAMEBUFFER_OPACITY, "Framebuffer Opacity") @@ -2922,3 +2922,7 @@ MSG_HASH(MENU_ENUM_SUBLABEL_XMB_MAIN_MENU_ENABLE_SETTINGS, "Enables the Settings tab. A restart is required for the tab to appear.") MSG_HASH(MENU_ENUM_SUBLABEL_XMB_SHOW_SETTINGS_PASSWORD, "Supplying a password when hiding the settings tab makes it possible to later restore it from the menu, by going to the Main Menu tab, selecting Enable Settings Tab and entering the password.") +MSG_HASH(MENU_ENUM_SUBLABEL_PLAYLIST_ENTRY_RENAME, + "Allow the user to rename entries in collections.") +MSG_HASH(MENU_ENUM_LABEL_VALUE_PLAYLIST_ENTRY_RENAME, + "Allow to rename entries") diff --git a/intl/msg_hash_pt_br.h b/intl/msg_hash_pt_br.h index ea07b1db12..70d2a37f81 100644 --- a/intl/msg_hash_pt_br.h +++ b/intl/msg_hash_pt_br.h @@ -3919,10 +3919,10 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_CORE_DELETE, MSG_HASH(MENU_ENUM_SUBLABEL_CORE_DELETE, "Remover este núcleo do disco." ) -MSG_HASH(MENU_ENUM_SUBLABEL_PLAYLIST_ENTRY_RENAME, +MSG_HASH(MENU_ENUM_SUBLABEL_RENAME_ENTRY, "Renomear o título do item." ) -MSG_HASH(MENU_ENUM_LABEL_VALUE_PLAYLIST_ENTRY_RENAME, +MSG_HASH(MENU_ENUM_LABEL_VALUE_RENAME_ENTRY, "Renomear" ) MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_FRAMEBUFFER_OPACITY, @@ -3982,3 +3982,9 @@ MSG_HASH(MENU_ENUM_SUBLABEL_XMB_MAIN_MENU_ENABLE_SETTINGS, MSG_HASH(MENU_ENUM_SUBLABEL_XMB_SHOW_SETTINGS_PASSWORD, "Supplying a password when hiding the settings tab makes it possible to later restore it from the menu, by going to the Main Menu tab, selecting Enable Settings Tab and entering the password." ) +MSG_HASH(MENU_ENUM_SUBLABEL_PLAYLIST_ENTRY_RENAME, + "Allow the user to rename entries in collections." + ) +MSG_HASH(MENU_ENUM_LABEL_VALUE_PLAYLIST_ENTRY_RENAME, + "Allow to rename entries" + ) diff --git a/intl/msg_hash_pt_pt.h b/intl/msg_hash_pt_pt.h index ac543b90df..2c884831fc 100644 --- a/intl/msg_hash_pt_pt.h +++ b/intl/msg_hash_pt_pt.h @@ -2987,9 +2987,9 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_CORE_DELETE, "Delete core") MSG_HASH(MENU_ENUM_SUBLABEL_CORE_DELETE, "Remove this core from disk.") -MSG_HASH(MENU_ENUM_LABEL_VALUE_PLAYLIST_ENTRY_RENAME, +MSG_HASH(MENU_ENUM_LABEL_VALUE_RENAME_ENTRY, "Rename the title of the entry.") -MSG_HASH(MENU_ENUM_LABEL_PLAYLIST_ENTRY_RENAME, +MSG_HASH(MENU_ENUM_LABEL_RENAME_ENTRY, "Rename") MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_FRAMEBUFFER_OPACITY, "Framebuffer Opacity") @@ -3029,3 +3029,7 @@ MSG_HASH(MENU_ENUM_SUBLABEL_XMB_MAIN_MENU_ENABLE_SETTINGS, "Enables the Settings tab. A restart is required for the tab to appear.") MSG_HASH(MENU_ENUM_SUBLABEL_XMB_SHOW_SETTINGS_PASSWORD, "Supplying a password when hiding the settings tab makes it possible to later restore it from the menu, by going to the Main Menu tab, selecting Enable Settings Tab and entering the password.") +MSG_HASH(MENU_ENUM_SUBLABEL_PLAYLIST_ENTRY_RENAME, + "Allow the user to rename entries in collections.") +MSG_HASH(MENU_ENUM_LABEL_VALUE_PLAYLIST_ENTRY_RENAME, + "Allow to rename entries") diff --git a/intl/msg_hash_ru.h b/intl/msg_hash_ru.h index 8e43483a36..5fa2440ab5 100644 --- a/intl/msg_hash_ru.h +++ b/intl/msg_hash_ru.h @@ -3070,9 +3070,9 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_CORE_DELETE, "Удалить ядро") MSG_HASH(MENU_ENUM_SUBLABEL_CORE_DELETE, "Удаление ядра с устройства.") -MSG_HASH(MENU_ENUM_LABEL_VALUE_PLAYLIST_ENTRY_RENAME, +MSG_HASH(MENU_ENUM_LABEL_VALUE_RENAME_ENTRY, "Переименовать название игры") -MSG_HASH(MENU_ENUM_LABEL_PLAYLIST_ENTRY_RENAME, +MSG_HASH(MENU_ENUM_LABEL_RENAME_ENTRY, "Переименовать") MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_FRAMEBUFFER_OPACITY, "Прозрачность кадра") @@ -3112,3 +3112,7 @@ MSG_HASH(MENU_ENUM_SUBLABEL_XMB_MAIN_MENU_ENABLE_SETTINGS, "Enables the Settings tab. A restart is required for the tab to appear.") MSG_HASH(MENU_ENUM_SUBLABEL_XMB_SHOW_SETTINGS_PASSWORD, "Supplying a password when hiding the settings tab makes it possible to later restore it from the menu, by going to the Main Menu tab, selecting Enable Settings Tab and entering the password.") +MSG_HASH(MENU_ENUM_SUBLABEL_PLAYLIST_ENTRY_RENAME, + "Allow the user to rename entries in collections.") +MSG_HASH(MENU_ENUM_LABEL_VALUE_PLAYLIST_ENTRY_RENAME, + "Allow to rename entries") diff --git a/intl/msg_hash_us.h b/intl/msg_hash_us.h index b12b1f2126..38eb3ecdb9 100644 --- a/intl/msg_hash_us.h +++ b/intl/msg_hash_us.h @@ -3105,10 +3105,6 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_CORE_DELETE, "Delete core") MSG_HASH(MENU_ENUM_SUBLABEL_CORE_DELETE, "Remove this core from disk.") -MSG_HASH(MENU_ENUM_SUBLABEL_PLAYLIST_ENTRY_RENAME, - "Rename the title of the entry.") -MSG_HASH(MENU_ENUM_LABEL_VALUE_PLAYLIST_ENTRY_RENAME, - "Rename") MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_FRAMEBUFFER_OPACITY, "Framebuffer Opacity") MSG_HASH(MENU_ENUM_SUBLABEL_MENU_FRAMEBUFFER_OPACITY, @@ -3147,3 +3143,11 @@ MSG_HASH(MENU_ENUM_SUBLABEL_XMB_MAIN_MENU_ENABLE_SETTINGS, "Enables the Settings tab. A restart is required for the tab to appear.") MSG_HASH(MENU_ENUM_SUBLABEL_XMB_SHOW_SETTINGS_PASSWORD, "Supplying a password when hiding the settings tab makes it possible to later restore it from the menu, by going to the Main Menu tab, selecting Enable Settings Tab and entering the password.") +MSG_HASH(MENU_ENUM_SUBLABEL_PLAYLIST_ENTRY_RENAME, + "Allow the user to rename entries in collections.") +MSG_HASH(MENU_ENUM_LABEL_VALUE_PLAYLIST_ENTRY_RENAME, + "Allow to rename entries") +MSG_HASH(MENU_ENUM_SUBLABEL_RENAME_ENTRY, + "Rename the title of the entry.") +MSG_HASH(MENU_ENUM_LABEL_VALUE_RENAME_ENTRY, + "Rename") diff --git a/intl/msg_hash_vn.h b/intl/msg_hash_vn.h index 0754579517..8b55a08cb2 100644 --- a/intl/msg_hash_vn.h +++ b/intl/msg_hash_vn.h @@ -3041,9 +3041,9 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_SHOW_CORE_UPDATER, "Show Core Updater") MSG_HASH(MENU_ENUM_SUBLABEL_MENU_SHOW_CORE_UPDATER, "Show/hide the ability to update cores (and core info files).") -MSG_HASH(MENU_ENUM_LABEL_VALUE_PLAYLIST_ENTRY_RENAME, +MSG_HASH(MENU_ENUM_LABEL_VALUE_RENAME_ENTRY, "Rename the title of the entry.") -MSG_HASH(MENU_ENUM_LABEL_PLAYLIST_ENTRY_RENAME, +MSG_HASH(MENU_ENUM_LABEL_RENAME_ENTRY, "Rename") MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_FRAMEBUFFER_OPACITY, "Framebuffer Opacity") @@ -3083,3 +3083,7 @@ MSG_HASH(MENU_ENUM_SUBLABEL_XMB_MAIN_MENU_ENABLE_SETTINGS, "Enables the Settings tab. A restart is required for the tab to appear.") MSG_HASH(MENU_ENUM_SUBLABEL_XMB_SHOW_SETTINGS_PASSWORD, "Supplying a password when hiding the settings tab makes it possible to later restore it from the menu, by going to the Main Menu tab, selecting Enable Settings Tab and entering the password.") +MSG_HASH(MENU_ENUM_SUBLABEL_PLAYLIST_ENTRY_RENAME, + "Allow the user to rename entries in collections.") +MSG_HASH(MENU_ENUM_LABEL_VALUE_PLAYLIST_ENTRY_RENAME, + "Allow to rename entries") diff --git a/menu/cbs/menu_cbs_ok.c b/menu/cbs/menu_cbs_ok.c index 8247a54779..806a89473b 100644 --- a/menu/cbs/menu_cbs_ok.c +++ b/menu/cbs/menu_cbs_ok.c @@ -4345,7 +4345,7 @@ static int menu_cbs_init_bind_ok_compare_label(menu_file_list_cbs_t *cbs, case MENU_ENUM_LABEL_TAKE_SCREENSHOT: BIND_ACTION_OK(cbs, action_ok_screenshot); break; - case MENU_ENUM_LABEL_PLAYLIST_ENTRY_RENAME: + case MENU_ENUM_LABEL_RENAME_ENTRY: BIND_ACTION_OK(cbs, action_ok_rename_entry); break; case MENU_ENUM_LABEL_DELETE_ENTRY: diff --git a/menu/cbs/menu_cbs_sublabel.c b/menu/cbs/menu_cbs_sublabel.c index f659b9ae5d..275c941e39 100644 --- a/menu/cbs/menu_cbs_sublabel.c +++ b/menu/cbs/menu_cbs_sublabel.c @@ -231,6 +231,7 @@ default_sublabel_macro(action_bind_sublabel_input_overlay_show_physical_inputs_p default_sublabel_macro(action_bind_sublabel_core_updater_buildbot_assets_url, MENU_ENUM_SUBLABEL_BUILDBOT_ASSETS_URL) default_sublabel_macro(action_bind_sublabel_core_updater_auto_extract_archive, MENU_ENUM_SUBLABEL_CORE_UPDATER_AUTO_EXTRACT_ARCHIVE) default_sublabel_macro(action_bind_sublabel_netplay_refresh_rooms, MENU_ENUM_SUBLABEL_NETPLAY_REFRESH_ROOMS) +default_sublabel_macro(action_bind_sublabel_rename_entry, MENU_ENUM_SUBLABEL_RENAME_ENTRY) default_sublabel_macro(action_bind_sublabel_delete_entry, MENU_ENUM_SUBLABEL_DELETE_ENTRY) default_sublabel_macro(action_bind_sublabel_information, MENU_ENUM_SUBLABEL_INFORMATION) default_sublabel_macro(action_bind_sublabel_run, MENU_ENUM_SUBLABEL_RUN) @@ -765,6 +766,9 @@ int menu_cbs_init_bind_sublabel(menu_file_list_cbs_t *cbs, case MENU_ENUM_LABEL_INFORMATION: BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_information); break; + case MENU_ENUM_LABEL_RENAME_ENTRY: + BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_rename_entry); + break; case MENU_ENUM_LABEL_DELETE_ENTRY: BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_delete_entry); break; diff --git a/menu/drivers/materialui.c b/menu/drivers/materialui.c index 80796b2888..dcee2c3fdb 100644 --- a/menu/drivers/materialui.c +++ b/menu/drivers/materialui.c @@ -2453,7 +2453,7 @@ static void mui_list_insert(void *userdata, node->texture_switch2 = mui->textures.list[MUI_TEXTURE_ADD_TO_FAVORITES]; node->texture_switch2_set = true; } - else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_PLAYLIST_ENTRY_RENAME))) + else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_RENAME_ENTRY))) { node->texture_switch2 = mui->textures.list[MUI_TEXTURE_RENAME]; node->texture_switch2_set = true; diff --git a/menu/drivers/xmb.c b/menu/drivers/xmb.c index 1aa3378f43..b793ea2641 100755 --- a/menu/drivers/xmb.c +++ b/menu/drivers/xmb.c @@ -2176,7 +2176,7 @@ static uintptr_t xmb_icon_get_id(xmb_handle_t *xmb, return xmb->textures.list[XMB_TEXTURE_CLOSE]; case MENU_ENUM_LABEL_RESTART_CONTENT: return xmb->textures.list[XMB_TEXTURE_RELOAD]; - case MENU_ENUM_LABEL_PLAYLIST_ENTRY_RENAME: + case MENU_ENUM_LABEL_RENAME_ENTRY: return xmb->textures.list[XMB_TEXTURE_RENAME]; case MENU_ENUM_LABEL_RESUME_CONTENT: return xmb->textures.list[XMB_TEXTURE_RESUME]; diff --git a/menu/menu_displaylist.c b/menu/menu_displaylist.c index 598836bde1..505375267f 100644 --- a/menu/menu_displaylist.c +++ b/menu/menu_displaylist.c @@ -3044,13 +3044,15 @@ static int menu_displaylist_parse_horizontal_content_actions( msg_hash_to_str(MENU_ENUM_LABEL_RUN), MENU_ENUM_LABEL_RUN, FILE_TYPE_PLAYLIST_ENTRY, 0, idx); - menu_entries_append_enum(info->list, - msg_hash_to_str(MENU_ENUM_LABEL_VALUE_PLAYLIST_ENTRY_RENAME), - msg_hash_to_str(MENU_ENUM_LABEL_PLAYLIST_ENTRY_RENAME), - MENU_ENUM_LABEL_PLAYLIST_ENTRY_RENAME, FILE_TYPE_PLAYLIST_ENTRY, 0, idx); + if (settings->bools.playlist_entry_rename) + menu_entries_append_enum(info->list, + msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RENAME_ENTRY), + msg_hash_to_str(MENU_ENUM_LABEL_RENAME_ENTRY), + MENU_ENUM_LABEL_RENAME_ENTRY, + FILE_TYPE_PLAYLIST_ENTRY, 0, idx); - if (settings->bools.playlist_entry_remove) - menu_entries_append_enum(info->list, + if (settings->bools.playlist_entry_remove) + menu_entries_append_enum(info->list, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_DELETE_ENTRY), msg_hash_to_str(MENU_ENUM_LABEL_DELETE_ENTRY), MENU_ENUM_LABEL_DELETE_ENTRY, @@ -5011,6 +5013,9 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type, void *data) ret = menu_displaylist_parse_settings_enum(menu, info, MENU_ENUM_LABEL_CONTENT_HISTORY_SIZE, PARSE_ONLY_UINT, false); + ret = menu_displaylist_parse_settings_enum(menu, info, + MENU_ENUM_LABEL_PLAYLIST_ENTRY_RENAME, + PARSE_ONLY_BOOL, false); ret = menu_displaylist_parse_settings_enum(menu, info, MENU_ENUM_LABEL_PLAYLIST_ENTRY_REMOVE, PARSE_ONLY_BOOL, false); diff --git a/menu/menu_setting.c b/menu/menu_setting.c index 552618fe70..a354d60613 100644 --- a/menu/menu_setting.c +++ b/menu/menu_setting.c @@ -5922,9 +5922,24 @@ static bool setting_append_list( END_SUB_GROUP(list, list_info, parent_group); - START_SUB_GROUP(list, list_info, "Playlist", &group_info, &subgroup_info, parent_group); + START_SUB_GROUP(list, list_info, "Playlist", &group_info, &subgroup_info, parent_group); - CONFIG_BOOL( + CONFIG_BOOL( + list, list_info, + &settings->bools.playlist_entry_rename, + MENU_ENUM_LABEL_PLAYLIST_ENTRY_RENAME, + MENU_ENUM_LABEL_VALUE_PLAYLIST_ENTRY_RENAME, + def_playlist_entry_rename, + MENU_ENUM_LABEL_VALUE_OFF, + MENU_ENUM_LABEL_VALUE_ON, + &group_info, + &subgroup_info, + parent_group, + general_write_handler, + general_read_handler, + SD_FLAG_NONE); + + CONFIG_BOOL( list, list_info, &settings->bools.playlist_entry_remove, MENU_ENUM_LABEL_PLAYLIST_ENTRY_REMOVE, @@ -5939,14 +5954,6 @@ static bool setting_append_list( general_read_handler, SD_FLAG_NONE); - CONFIG_ACTION( - list, list_info, - MENU_ENUM_LABEL_PLAYLIST_ENTRY_RENAME, - MENU_ENUM_LABEL_VALUE_PLAYLIST_ENTRY_RENAME, - &group_info, - &subgroup_info, - parent_group); - END_SUB_GROUP(list, list_info, parent_group); END_GROUP(list, list_info, parent_group); diff --git a/msg_hash.h b/msg_hash.h index 9482dbd021..4c3dea4561 100644 --- a/msg_hash.h +++ b/msg_hash.h @@ -1406,6 +1406,7 @@ enum msg_hash_enums MENU_LABEL(CHEAT_FILE_SAVE_AS), MENU_LABEL(DELETE_ENTRY), + MENU_LABEL(RENAME_ENTRY), MENU_LABEL(RESTART_RETROARCH), MENU_LABEL(TAKE_SCREENSHOT),