Add setting to file_list_cbs_t

This commit is contained in:
twinaphex 2015-08-17 19:27:03 +02:00
parent 4f6a2f3677
commit e523177f34
2 changed files with 8 additions and 0 deletions

View File

@ -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';

View File

@ -19,6 +19,7 @@
#include <stddef.h>
#include <file/file_list.h>
#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,