mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 12:32:52 +00:00
(Menu widgets) Add menu widgets setting
This commit is contained in:
parent
8b0f083a4e
commit
b7e7f6a651
12
config.def.h
12
config.def.h
@ -537,11 +537,17 @@ static const unsigned video_3ds_display_mode = CTR_VIDEO_MODE_3D;
|
||||
static const bool audio_enable = true;
|
||||
|
||||
/* Enable menu audio sounds. */
|
||||
static const bool audio_enable_menu = false;
|
||||
static const bool audio_enable_menu_ok = false;
|
||||
static const bool audio_enable_menu = false;
|
||||
static const bool audio_enable_menu_ok = false;
|
||||
static const bool audio_enable_menu_cancel = false;
|
||||
static const bool audio_enable_menu_notice = false;
|
||||
static const bool audio_enable_menu_bgm = false;
|
||||
static const bool audio_enable_menu_bgm = false;
|
||||
|
||||
#ifdef HAVE_MENU_WIDGETS
|
||||
static const bool menu_enable_widgets = true;
|
||||
#else
|
||||
static const bool menu_enable_widgets = false;
|
||||
#endif
|
||||
|
||||
/* Output samplerate. */
|
||||
#ifdef GEKKO
|
||||
|
@ -1416,6 +1416,7 @@ static struct config_bool_setting *populate_settings_bool(settings_t *settings,
|
||||
SETTING_BOOL("keyboard_gamepad_enable", &settings->bools.input_keyboard_gamepad_enable, true, true, false);
|
||||
SETTING_BOOL("core_set_supports_no_game_enable", &settings->bools.set_supports_no_game_enable, true, true, false);
|
||||
SETTING_BOOL("audio_enable", &settings->bools.audio_enable, true, audio_enable, false);
|
||||
SETTING_BOOL("menu_enable_widgets", &settings->bools.menu_enable_widgets, true, menu_enable_widgets, false);
|
||||
SETTING_BOOL("audio_enable_menu", &settings->bools.audio_enable_menu, true, audio_enable_menu, false);
|
||||
SETTING_BOOL("audio_enable_menu_ok", &settings->bools.audio_enable_menu_ok, true, audio_enable_menu_ok, false);
|
||||
SETTING_BOOL("audio_enable_menu_cancel", &settings->bools.audio_enable_menu_cancel, true, audio_enable_menu_cancel, false);
|
||||
|
@ -137,6 +137,7 @@ typedef struct settings
|
||||
|
||||
/* Menu */
|
||||
bool filter_by_current_core;
|
||||
bool menu_enable_widgets;
|
||||
bool menu_show_start_screen;
|
||||
bool menu_pause_libretro;
|
||||
bool menu_timedate_enable;
|
||||
@ -322,9 +323,8 @@ typedef struct settings
|
||||
bool quit_press_twice;
|
||||
bool vibrate_on_keypress;
|
||||
bool enable_device_vibration;
|
||||
#ifdef HAVE_OZONE
|
||||
bool ozone_collapse_sidebar;
|
||||
#endif
|
||||
|
||||
|
||||
bool log_to_file;
|
||||
bool log_to_file_timestamp;
|
||||
|
@ -3748,3 +3748,5 @@ MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_COREAUDIO3_SUPPORT,
|
||||
"CoreAudio V3 support"
|
||||
)
|
||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_WIDGETS_ENABLE,
|
||||
"Menu Widgets")
|
||||
|
@ -4762,3 +4762,5 @@ MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_COREAUDIO3_SUPPORT,
|
||||
"CoreAudio V3 support"
|
||||
)
|
||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_WIDGETS_ENABLE,
|
||||
"Menu Widgets")
|
||||
|
@ -3520,3 +3520,5 @@ MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_COREAUDIO3_SUPPORT,
|
||||
"CoreAudio V3 support"
|
||||
)
|
||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_WIDGETS_ENABLE,
|
||||
"Menu Widgets")
|
||||
|
@ -3649,3 +3649,5 @@ MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_COREAUDIO3_SUPPORT,
|
||||
"CoreAudio V3 support"
|
||||
)
|
||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_WIDGETS_ENABLE,
|
||||
"Menu Widgets")
|
||||
|
@ -7726,3 +7726,5 @@ MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_COREAUDIO3_SUPPORT,
|
||||
"CoreAudio V3 support"
|
||||
)
|
||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_WIDGETS_ENABLE,
|
||||
"Menu Widgets")
|
||||
|
@ -3408,3 +3408,5 @@ MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_COREAUDIO3_SUPPORT,
|
||||
"CoreAudio V3 support"
|
||||
)
|
||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_WIDGETS_ENABLE,
|
||||
"Menu Widgets")
|
||||
|
@ -7878,3 +7878,5 @@ MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_COREAUDIO3_SUPPORT,
|
||||
"CoreAudio V3 support"
|
||||
)
|
||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_WIDGETS_ENABLE,
|
||||
"Menu Widgets")
|
||||
|
@ -3564,3 +3564,5 @@ MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_COREAUDIO3_SUPPORT,
|
||||
"CoreAudio V3 support"
|
||||
)
|
||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_WIDGETS_ENABLE,
|
||||
"Menu Widgets")
|
||||
|
@ -3633,3 +3633,5 @@ MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_COREAUDIO3_SUPPORT,
|
||||
"Supporto per il CoreAudio V3"
|
||||
)
|
||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_WIDGETS_ENABLE,
|
||||
"Menu Widgets")
|
||||
|
@ -4202,3 +4202,5 @@ MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_RUNTIME_LOG_DIRECTORY,
|
||||
"実行時ログ"
|
||||
)
|
||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_WIDGETS_ENABLE,
|
||||
"Menu Widgets")
|
||||
|
@ -3501,3 +3501,5 @@ MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_COREAUDIO3_SUPPORT,
|
||||
"CoreAudio V3 support"
|
||||
)
|
||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_WIDGETS_ENABLE,
|
||||
"Menu Widgets")
|
||||
|
@ -1837,3 +1837,5 @@ MSG_HASH(MENU_ENUM_LABEL_ENABLE_DEVICE_VIBRATION,
|
||||
"enable_device_vibration")
|
||||
MSG_HASH(MENU_ENUM_LABEL_LOG_DIR,
|
||||
"log_dir")
|
||||
MSG_HASH(MENU_ENUM_LABEL_MENU_WIDGETS_ENABLE,
|
||||
"menu_widgets_enable")
|
||||
|
@ -3402,3 +3402,5 @@ MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_MENU_SOUNDS,
|
||||
"Menu Geluiden"
|
||||
)
|
||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_WIDGETS_ENABLE,
|
||||
"Menu Widgets")
|
||||
|
@ -3798,3 +3798,5 @@ MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_COREAUDIO3_SUPPORT,
|
||||
"Obsługa CoreAudio V3"
|
||||
)
|
||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_WIDGETS_ENABLE,
|
||||
"Menu Widgets")
|
||||
|
@ -8030,3 +8030,5 @@ MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_COREAUDIO3_SUPPORT,
|
||||
"CoreAudio V3 support"
|
||||
)
|
||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_WIDGETS_ENABLE,
|
||||
"Menu Widgets")
|
||||
|
@ -3474,3 +3474,5 @@ MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_COREAUDIO3_SUPPORT,
|
||||
"CoreAudio V3 support"
|
||||
)
|
||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_WIDGETS_ENABLE,
|
||||
"Menu Widgets")
|
||||
|
@ -3677,3 +3677,5 @@ MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_COREAUDIO3_SUPPORT,
|
||||
"CoreAudio V3 support"
|
||||
)
|
||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_WIDGETS_ENABLE,
|
||||
"Menu Widgets")
|
||||
|
@ -8546,3 +8546,5 @@ MSG_HASH(
|
||||
MENU_ENUM_SUBLABEL_LOG_DIR,
|
||||
"Sistem olay günlüğü dosyalarını bu dizine kaydedin."
|
||||
)
|
||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_WIDGETS_ENABLE,
|
||||
"Menu Widgets")
|
||||
|
@ -8652,3 +8652,5 @@ MSG_HASH(
|
||||
MENU_ENUM_SUBLABEL_LOG_DIR,
|
||||
"Save system event log files to this directory."
|
||||
)
|
||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_WIDGETS_ENABLE,
|
||||
"Menu Widgets")
|
||||
|
@ -3564,3 +3564,5 @@ MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_COREAUDIO3_SUPPORT,
|
||||
"CoreAudio V3 support"
|
||||
)
|
||||
MSG_HASH(MENU_ENUM_LABEL_VALUE_MENU_WIDGETS_ENABLE,
|
||||
"Menu Widgets")
|
||||
|
@ -3616,6 +3616,7 @@ unsigned menu_displaylist_build_list(file_list_t *list, enum menu_displaylist_ct
|
||||
{MENU_ENUM_LABEL_MENU_VIEWS_SETTINGS, PARSE_ACTION },
|
||||
{MENU_ENUM_LABEL_MENU_SETTINGS, PARSE_ACTION },
|
||||
{MENU_ENUM_LABEL_SHOW_ADVANCED_SETTINGS, PARSE_ONLY_BOOL },
|
||||
{MENU_ENUM_LABEL_MENU_WIDGETS_ENABLE, PARSE_ONLY_BOOL },
|
||||
{MENU_ENUM_LABEL_MENU_ENABLE_KIOSK_MODE, PARSE_ONLY_BOOL },
|
||||
{MENU_ENUM_LABEL_MENU_KIOSK_MODE_PASSWORD, PARSE_ONLY_STRING},
|
||||
{MENU_ENUM_LABEL_NAVIGATION_WRAPAROUND, PARSE_ONLY_BOOL },
|
||||
|
@ -11038,6 +11038,23 @@ static bool setting_append_list(
|
||||
general_read_handler,
|
||||
SD_FLAG_NONE);
|
||||
|
||||
#ifdef HAVE_MENU_WIDGETS
|
||||
CONFIG_BOOL(
|
||||
list, list_info,
|
||||
&settings->bools.menu_enable_widgets,
|
||||
MENU_ENUM_LABEL_MENU_WIDGETS_ENABLE,
|
||||
MENU_ENUM_LABEL_VALUE_MENU_WIDGETS_ENABLE,
|
||||
menu_enable_widgets,
|
||||
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);
|
||||
#endif
|
||||
|
||||
if (string_is_equal(settings->arrays.menu_driver, "xmb") || string_is_equal(settings->arrays.menu_driver, "ozone"))
|
||||
{
|
||||
CONFIG_BOOL(
|
||||
|
@ -2060,6 +2060,7 @@ enum msg_hash_enums
|
||||
MENU_ENUM_SUBLABEL_INFORMATION_LIST_LIST,
|
||||
MENU_ENUM_SUBLABEL_SERVICES_SETTINGS,
|
||||
|
||||
MENU_LABEL(MENU_WIDGETS_ENABLE),
|
||||
MENU_LABEL(SELECT_FILE),
|
||||
MENU_LABEL(SELECT_FROM_PLAYLIST),
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user