From e523177f343e85d40618de681be265f749f1c150 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 17 Aug 2015 19:27:03 +0200 Subject: [PATCH] Add setting to file_list_cbs_t --- menu/menu_cbs.c | 6 ++++++ menu/menu_list.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/menu/menu_cbs.c b/menu/menu_cbs.c index cd1e0e8b10..c00bdfc6d1 100644 --- a/menu/menu_cbs.c +++ b/menu/menu_cbs.c @@ -51,6 +51,7 @@ void menu_cbs_init(void *data, { char elem0[PATH_MAX_LENGTH]; char elem1[PATH_MAX_LENGTH]; + rarch_setting_t *setting = NULL; struct string_list *str_list = NULL; const char *menu_label = NULL; menu_file_list_cbs_t *cbs = NULL; @@ -67,6 +68,11 @@ void menu_cbs_init(void *data, if (!cbs) return; + setting = menu_setting_find(label); + + if (setting) + cbs->setting = setting; + elem0[0] = '\0'; elem1[0] = '\0'; diff --git a/menu/menu_list.h b/menu/menu_list.h index 724de34fad..206f7665ab 100644 --- a/menu/menu_list.h +++ b/menu/menu_list.h @@ -19,6 +19,7 @@ #include #include +#include "menu_setting.h" #ifdef __cplusplus extern "C" { @@ -38,6 +39,7 @@ typedef enum typedef struct menu_file_list_cbs { + rarch_setting_t *setting; int (*action_iterate)(const char *label, unsigned action); int (*action_deferred_push)(menu_displaylist_info_t *info); int (*action_select)(const char *path, const char *label, unsigned type,