From c990b29c097bec7cc859839aef5a23ac42721b20 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 23 Aug 2019 17:10:56 +0200 Subject: [PATCH] Enable content runtime log by default --- config.def.h | 2 +- configuration.c | 2 +- menu/menu_setting.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config.def.h b/config.def.h index 84a93344ad..dd2b90ee0c 100644 --- a/config.def.h +++ b/config.def.h @@ -954,7 +954,7 @@ static const bool ui_companion_toggle = false; static const bool desktop_menu_enable = true; /* Keep track of how long each core+content has been running for over time */ -static const bool content_runtime_log = false; +#define DEFAULT_CONTENT_RUNTIME_LOG true /* Keep track of how long each content has been running for over time (ignores core) */ static const bool content_runtime_log_aggregate = false; diff --git a/configuration.c b/configuration.c index 9aa580ce08..e3626635ad 100644 --- a/configuration.c +++ b/configuration.c @@ -1635,7 +1635,7 @@ static struct config_bool_setting *populate_settings_bool(settings_t *settings, #endif SETTING_BOOL("playlist_use_old_format", &settings->bools.playlist_use_old_format, true, playlist_use_old_format, false); - SETTING_BOOL("content_runtime_log", &settings->bools.content_runtime_log, true, content_runtime_log, false); + SETTING_BOOL("content_runtime_log", &settings->bools.content_runtime_log, true, DEFAULT_CONTENT_RUNTIME_LOG, false); SETTING_BOOL("content_runtime_log_aggregate", &settings->bools.content_runtime_log_aggregate, true, content_runtime_log_aggregate, false); SETTING_BOOL("playlist_show_sublabels", &settings->bools.playlist_show_sublabels, true, playlist_show_sublabels, false); SETTING_BOOL("playlist_sort_alphabetical", &settings->bools.playlist_sort_alphabetical, true, playlist_sort_alphabetical, false); diff --git a/menu/menu_setting.c b/menu/menu_setting.c index 96ff79e69d..7719541118 100644 --- a/menu/menu_setting.c +++ b/menu/menu_setting.c @@ -8023,7 +8023,7 @@ static bool setting_append_list( &settings->bools.content_runtime_log, MENU_ENUM_LABEL_CONTENT_RUNTIME_LOG, MENU_ENUM_LABEL_VALUE_CONTENT_RUNTIME_LOG, - content_runtime_log, + DEFAULT_CONTENT_RUNTIME_LOG, MENU_ENUM_LABEL_VALUE_OFF, MENU_ENUM_LABEL_VALUE_ON, &group_info,