mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-22 10:49:02 +00:00
Add setting to file_list_cbs_t
This commit is contained in:
parent
4f6a2f3677
commit
e523177f34
@ -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';
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user