mirror of
https://github.com/libretro/RetroArch.git
synced 2025-01-27 12:02:05 +00:00
Add frontend log level setting
This commit is contained in:
parent
eff7cb467e
commit
ad71451432
@ -829,6 +829,9 @@ static const bool default_menu_show_start_screen = true;
|
||||
#define DEFAULT_MENU_DPI_OVERRIDE_VALUE 200
|
||||
#endif
|
||||
|
||||
/* Log level for the frontend */
|
||||
#define DEFAULT_FRONTEND_LOG_LEVEL 1
|
||||
|
||||
/* Log level for libretro cores (GET_LOG_INTERFACE). */
|
||||
#define DEFAULT_LIBRETRO_LOG_LEVEL 1
|
||||
|
||||
|
@ -1706,6 +1706,7 @@ static struct config_uint_setting *populate_settings_uint(settings_t *settings,
|
||||
SETTING_UINT("rewind_granularity", &settings->uints.rewind_granularity, true, DEFAULT_REWIND_GRANULARITY, false);
|
||||
SETTING_UINT("rewind_buffer_size_step", &settings->uints.rewind_buffer_size_step, true, DEFAULT_REWIND_BUFFER_SIZE_STEP, false);
|
||||
SETTING_UINT("autosave_interval", &settings->uints.autosave_interval, true, DEFAULT_AUTOSAVE_INTERVAL, false);
|
||||
SETTING_UINT("frontend_log_level", &settings->uints.frontend_log_level, true, DEFAULT_FRONTEND_LOG_LEVEL, false);
|
||||
SETTING_UINT("libretro_log_level", &settings->uints.libretro_log_level, true, DEFAULT_LIBRETRO_LOG_LEVEL, false);
|
||||
SETTING_UINT("keyboard_gamepad_mapping_type",&settings->uints.input_keyboard_gamepad_mapping_type, true, 1, false);
|
||||
SETTING_UINT("input_poll_type_behavior", &settings->uints.input_poll_type_behavior, true, 2, false);
|
||||
|
@ -434,6 +434,7 @@ typedef struct settings
|
||||
unsigned bundle_assets_extract_version_current;
|
||||
unsigned bundle_assets_extract_last_version;
|
||||
unsigned content_history_size;
|
||||
unsigned frontend_log_level;
|
||||
unsigned libretro_log_level;
|
||||
unsigned rewind_granularity;
|
||||
unsigned rewind_buffer_size_step;
|
||||
|
@ -3818,3 +3818,11 @@ MSG_HASH(
|
||||
MENU_ENUM_SUBLABEL_DISC_INFORMATION,
|
||||
"View information about inserted media discs."
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_FRONTEND_LOG_LEVEL,
|
||||
"Frontend Logging Level"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_SUBLABEL_FRONTEND_LOG_LEVEL,
|
||||
"Sets log level for the frontend. If a log level issued by the frontend is below this value, it is ignored."
|
||||
)
|
||||
|
@ -4836,3 +4836,11 @@ MSG_HASH(
|
||||
MENU_ENUM_SUBLABEL_DISC_INFORMATION,
|
||||
"View information about inserted media discs."
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_FRONTEND_LOG_LEVEL,
|
||||
"Frontend Logging Level"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_SUBLABEL_FRONTEND_LOG_LEVEL,
|
||||
"Sets log level for the frontend. If a log level issued by the frontend is below this value, it is ignored."
|
||||
)
|
||||
|
@ -3594,3 +3594,11 @@ MSG_HASH(
|
||||
MENU_ENUM_SUBLABEL_DISC_INFORMATION,
|
||||
"View information about inserted media discs."
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_FRONTEND_LOG_LEVEL,
|
||||
"Frontend Logging Level"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_SUBLABEL_FRONTEND_LOG_LEVEL,
|
||||
"Sets log level for the frontend. If a log level issued by the frontend is below this value, it is ignored."
|
||||
)
|
||||
|
@ -3723,3 +3723,11 @@ MSG_HASH(
|
||||
MENU_ENUM_SUBLABEL_DISC_INFORMATION,
|
||||
"View information about inserted media discs."
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_FRONTEND_LOG_LEVEL,
|
||||
"Frontend Logging Level"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_SUBLABEL_FRONTEND_LOG_LEVEL,
|
||||
"Sets log level for the frontend. If a log level issued by the frontend is below this value, it is ignored."
|
||||
)
|
||||
|
@ -7800,3 +7800,11 @@ MSG_HASH(
|
||||
MENU_ENUM_SUBLABEL_DISC_INFORMATION,
|
||||
"View information about inserted media discs."
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_FRONTEND_LOG_LEVEL,
|
||||
"Frontend Logging Level"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_SUBLABEL_FRONTEND_LOG_LEVEL,
|
||||
"Sets log level for the frontend. If a log level issued by the frontend is below this value, it is ignored."
|
||||
)
|
||||
|
@ -3482,3 +3482,11 @@ MSG_HASH(
|
||||
MENU_ENUM_SUBLABEL_DISC_INFORMATION,
|
||||
"View information about inserted media discs."
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_FRONTEND_LOG_LEVEL,
|
||||
"Frontend Logging Level"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_SUBLABEL_FRONTEND_LOG_LEVEL,
|
||||
"Sets log level for the frontend. If a log level issued by the frontend is below this value, it is ignored."
|
||||
)
|
||||
|
@ -7952,3 +7952,11 @@ MSG_HASH(
|
||||
MENU_ENUM_SUBLABEL_DISC_INFORMATION,
|
||||
"View information about inserted media discs."
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_FRONTEND_LOG_LEVEL,
|
||||
"Frontend Logging Level"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_SUBLABEL_FRONTEND_LOG_LEVEL,
|
||||
"Sets log level for the frontend. If a log level issued by the frontend is below this value, it is ignored."
|
||||
)
|
||||
|
@ -8740,3 +8740,11 @@ MSG_HASH(
|
||||
MENU_ENUM_SUBLABEL_DISC_INFORMATION,
|
||||
"View information about inserted media discs."
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_FRONTEND_LOG_LEVEL,
|
||||
"Frontend Logging Level"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_SUBLABEL_FRONTEND_LOG_LEVEL,
|
||||
"Sets log level for the frontend. If a log level issued by the frontend is below this value, it is ignored."
|
||||
)
|
||||
|
@ -3703,3 +3703,11 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_DISC_INFORMATION,
|
||||
"Informazioni sul disco")
|
||||
MSG_HASH(MENU_ENUM_SUBLABEL_DISC_INFORMATION,
|
||||
"Visualizza le informazioni sui dischi multimediali inseriti.")
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_FRONTEND_LOG_LEVEL,
|
||||
"Frontend Logging Level"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_SUBLABEL_FRONTEND_LOG_LEVEL,
|
||||
"Sets log level for the frontend. If a log level issued by the frontend is below this value, it is ignored."
|
||||
)
|
||||
|
@ -9115,3 +9115,11 @@ MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_SET_CORE_ASSOCIATION,
|
||||
"コアの関連付けを設定"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_FRONTEND_LOG_LEVEL,
|
||||
"Frontend Logging Level"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_SUBLABEL_FRONTEND_LOG_LEVEL,
|
||||
"Sets log level for the frontend. If a log level issued by the frontend is below this value, it is ignored."
|
||||
)
|
||||
|
@ -8947,3 +8947,11 @@ MSG_HASH(
|
||||
MENU_ENUM_SUBLABEL_DISC_INFORMATION,
|
||||
"View information about inserted media discs."
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_FRONTEND_LOG_LEVEL,
|
||||
"Frontend Logging Level"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_SUBLABEL_FRONTEND_LOG_LEVEL,
|
||||
"Sets log level for the frontend. If a log level issued by the frontend is below this value, it is ignored."
|
||||
)
|
||||
|
@ -661,6 +661,8 @@ MSG_HASH(MENU_ENUM_LABEL_LIBRETRO_DIR_PATH,
|
||||
"libretro_dir_path")
|
||||
MSG_HASH(MENU_ENUM_LABEL_LIBRETRO_INFO_PATH,
|
||||
"libretro_info_path")
|
||||
MSG_HASH(MENU_ENUM_LABEL_FRONTEND_LOG_LEVEL,
|
||||
"frontend_log_level")
|
||||
MSG_HASH(MENU_ENUM_LABEL_LIBRETRO_LOG_LEVEL,
|
||||
"libretro_log_level")
|
||||
MSG_HASH(MENU_ENUM_LABEL_LOAD_ARCHIVE,
|
||||
|
@ -3476,3 +3476,11 @@ MSG_HASH(
|
||||
MENU_ENUM_SUBLABEL_DISC_INFORMATION,
|
||||
"View information about inserted media discs."
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_FRONTEND_LOG_LEVEL,
|
||||
"Frontend Logging Level"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_SUBLABEL_FRONTEND_LOG_LEVEL,
|
||||
"Sets log level for the frontend. If a log level issued by the frontend is below this value, it is ignored."
|
||||
)
|
||||
|
@ -4267,3 +4267,11 @@ MSG_HASH(
|
||||
MENU_ENUM_SUBLABEL_CHEAT_FILE_LOAD_APPEND,
|
||||
"Załaduj plik kodów i dołącz do istniejących kodów."
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_FRONTEND_LOG_LEVEL,
|
||||
"Frontend Logging Level"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_SUBLABEL_FRONTEND_LOG_LEVEL,
|
||||
"Sets log level for the frontend. If a log level issued by the frontend is below this value, it is ignored."
|
||||
)
|
||||
|
@ -9027,3 +9027,11 @@ MSG_HASH(
|
||||
MSG_INCOMPATIBLE_CORE_FOR_VIDEO_DRIVER,
|
||||
"Este núcleo não é compatível com o driver de vídeo atual."
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_FRONTEND_LOG_LEVEL,
|
||||
"Frontend Logging Level"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_SUBLABEL_FRONTEND_LOG_LEVEL,
|
||||
"Sets log level for the frontend. If a log level issued by the frontend is below this value, it is ignored."
|
||||
)
|
||||
|
@ -3548,3 +3548,11 @@ MSG_HASH(
|
||||
MENU_ENUM_SUBLABEL_DISC_INFORMATION,
|
||||
"View information about inserted media discs."
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_FRONTEND_LOG_LEVEL,
|
||||
"Frontend Logging Level"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_SUBLABEL_FRONTEND_LOG_LEVEL,
|
||||
"Sets log level for the frontend. If a log level issued by the frontend is below this value, it is ignored."
|
||||
)
|
||||
|
@ -3746,3 +3746,11 @@ MSG_HASH(
|
||||
MENU_ENUM_SUBLABEL_DISC_INFORMATION,
|
||||
"View information about inserted media discs."
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_FRONTEND_LOG_LEVEL,
|
||||
"Frontend Logging Level"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_SUBLABEL_FRONTEND_LOG_LEVEL,
|
||||
"Sets log level for the frontend. If a log level issued by the frontend is below this value, it is ignored."
|
||||
)
|
||||
|
@ -8752,3 +8752,11 @@ MSG_HASH(
|
||||
MENU_ENUM_SUBLABEL_DISC_INFORMATION,
|
||||
"Takılan medya diskleri hakkındaki bilgileri görüntüleyin."
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_FRONTEND_LOG_LEVEL,
|
||||
"Frontend Logging Level"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_SUBLABEL_FRONTEND_LOG_LEVEL,
|
||||
"Sets log level for the frontend. If a log level issued by the frontend is below this value, it is ignored."
|
||||
)
|
||||
|
@ -9075,3 +9075,11 @@ MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_QT_RESET_ALL,
|
||||
"Reset All"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_FRONTEND_LOG_LEVEL,
|
||||
"Frontend Logging Level"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_SUBLABEL_FRONTEND_LOG_LEVEL,
|
||||
"Sets log level for the frontend. If a log level issued by the frontend is below this value, it is ignored."
|
||||
)
|
||||
|
@ -3638,3 +3638,11 @@ MSG_HASH(
|
||||
MENU_ENUM_SUBLABEL_DISC_INFORMATION,
|
||||
"View information about inserted media discs."
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_FRONTEND_LOG_LEVEL,
|
||||
"Frontend Logging Level"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_SUBLABEL_FRONTEND_LOG_LEVEL,
|
||||
"Sets log level for the frontend. If a log level issued by the frontend is below this value, it is ignored."
|
||||
)
|
||||
|
@ -315,6 +315,7 @@ default_sublabel_macro(action_bind_sublabel_cheat_reload_cheats, MENU_
|
||||
default_sublabel_macro(action_bind_sublabel_cheat_address_bit_position, MENU_ENUM_SUBLABEL_CHEAT_ADDRESS_BIT_POSITION)
|
||||
default_sublabel_macro(action_bind_sublabel_cheat_delete_all, MENU_ENUM_SUBLABEL_CHEAT_DELETE_ALL)
|
||||
default_sublabel_macro(action_bind_sublabel_libretro_log_level, MENU_ENUM_SUBLABEL_LIBRETRO_LOG_LEVEL)
|
||||
default_sublabel_macro(action_bind_sublabel_frontend_log_level, MENU_ENUM_SUBLABEL_FRONTEND_LOG_LEVEL)
|
||||
default_sublabel_macro(action_bind_sublabel_perfcnt_enable, MENU_ENUM_SUBLABEL_PERFCNT_ENABLE)
|
||||
default_sublabel_macro(action_bind_sublabel_savestate_auto_save, MENU_ENUM_SUBLABEL_SAVESTATE_AUTO_SAVE)
|
||||
default_sublabel_macro(action_bind_sublabel_savestate_auto_load, MENU_ENUM_SUBLABEL_SAVESTATE_AUTO_LOAD)
|
||||
@ -1960,6 +1961,9 @@ int menu_cbs_init_bind_sublabel(menu_file_list_cbs_t *cbs,
|
||||
case MENU_ENUM_LABEL_PERFCNT_ENABLE:
|
||||
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_perfcnt_enable);
|
||||
break;
|
||||
case MENU_ENUM_LABEL_FRONTEND_LOG_LEVEL:
|
||||
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_frontend_log_level);
|
||||
break;
|
||||
case MENU_ENUM_LABEL_LIBRETRO_LOG_LEVEL:
|
||||
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_libretro_log_level);
|
||||
break;
|
||||
|
@ -5068,6 +5068,7 @@ unsigned menu_displaylist_build_list(file_list_t *list, enum menu_displaylist_ct
|
||||
{
|
||||
menu_displaylist_build_info_t build_list[] = {
|
||||
{MENU_ENUM_LABEL_LOG_VERBOSITY, PARSE_ONLY_BOOL},
|
||||
{MENU_ENUM_LABEL_FRONTEND_LOG_LEVEL, PARSE_ONLY_UINT},
|
||||
{MENU_ENUM_LABEL_LIBRETRO_LOG_LEVEL, PARSE_ONLY_UINT},
|
||||
{MENU_ENUM_LABEL_LOG_TO_FILE, PARSE_ONLY_BOOL},
|
||||
{MENU_ENUM_LABEL_LOG_TO_FILE_TIMESTAMP, PARSE_ONLY_BOOL},
|
||||
|
@ -7582,6 +7582,24 @@ static bool setting_append_list(
|
||||
general_read_handler,
|
||||
SD_FLAG_ADVANCED);
|
||||
|
||||
CONFIG_UINT(
|
||||
list, list_info,
|
||||
&settings->uints.frontend_log_level,
|
||||
MENU_ENUM_LABEL_FRONTEND_LOG_LEVEL,
|
||||
MENU_ENUM_LABEL_VALUE_FRONTEND_LOG_LEVEL,
|
||||
DEFAULT_FRONTEND_LOG_LEVEL,
|
||||
&group_info,
|
||||
&subgroup_info,
|
||||
parent_group,
|
||||
general_write_handler,
|
||||
general_read_handler);
|
||||
(*list)[list_info->index - 1].ui_type = ST_UI_TYPE_UINT_RADIO_BUTTONS;
|
||||
(*list)[list_info->index - 1].action_ok = &setting_action_ok_uint;
|
||||
menu_settings_list_current_add_range(list, list_info, 0, 3, 1.0, true, true);
|
||||
(*list)[list_info->index - 1].get_string_representation =
|
||||
&setting_get_string_representation_uint_libretro_log_level;
|
||||
SETTINGS_DATA_LIST_CURRENT_ADD_FLAGS(list, list_info, SD_FLAG_ADVANCED);
|
||||
|
||||
CONFIG_UINT(
|
||||
list, list_info,
|
||||
&settings->uints.libretro_log_level,
|
||||
|
@ -1536,6 +1536,7 @@ enum msg_hash_enums
|
||||
MENU_LABEL(STATE_SLOT_DECREASE),
|
||||
MENU_LABEL(STATE_SLOT_INCREASE),
|
||||
|
||||
MENU_LABEL(FRONTEND_LOG_LEVEL),
|
||||
MENU_LABEL(LIBRETRO_LOG_LEVEL),
|
||||
MENU_LABEL(AUTOSAVE_INTERVAL),
|
||||
MENU_LABEL(CONFIG_SAVE_ON_EXIT),
|
||||
|
Loading…
x
Reference in New Issue
Block a user