mirror of
https://github.com/libretro/RetroArch
synced 2024-12-27 15:29:23 +00:00
(Menu) Refactor setting_set
This commit is contained in:
parent
a030547399
commit
736a15832e
@ -141,7 +141,7 @@ typedef struct menu_ctx_driver_backend
|
||||
unsigned (*type_is)(unsigned);
|
||||
int (*core_setting_toggle)(unsigned, unsigned);
|
||||
int (*setting_toggle)(unsigned, unsigned, unsigned, rarch_setting_t*);
|
||||
int (*setting_set)(unsigned, unsigned);
|
||||
int (*setting_set)(unsigned, unsigned, rarch_setting_t *);
|
||||
void (*setting_set_label)(char *, size_t, unsigned *, unsigned);
|
||||
void (*defer_decision_automatic)(void);
|
||||
void (*defer_decision_manual)(void);
|
||||
|
@ -3027,7 +3027,7 @@ static int menu_common_shader_manager_setting_toggle(unsigned id,
|
||||
}
|
||||
else if ((id == MENU_SETTINGS_SHADER_APPLY || id == MENU_SETTINGS_SHADER_PASSES) &&
|
||||
(driver.menu_ctx && driver.menu_ctx->backend && driver.menu_ctx->backend->setting_set))
|
||||
driver.menu_ctx->backend->setting_set(id, action);
|
||||
driver.menu_ctx->backend->setting_set(id, action, setting);
|
||||
else if (((dist_shader % 3) == 0 || id == MENU_SETTINGS_SHADER_PRESET))
|
||||
{
|
||||
struct gfx_shader *shader = (struct gfx_shader*)driver.menu->shader;
|
||||
@ -3140,7 +3140,7 @@ static int menu_common_setting_toggle(unsigned id, unsigned action,
|
||||
return driver.menu_ctx->backend->core_setting_toggle(id, action);
|
||||
|
||||
if (driver.menu_ctx && driver.menu_ctx->backend && driver.menu_ctx->backend->setting_set)
|
||||
return driver.menu_ctx->backend->setting_set(id, action);
|
||||
return driver.menu_ctx->backend->setting_set(id, action, setting);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@ -3324,7 +3324,7 @@ static bool osk_callback_enter_filename_init(void *data)
|
||||
#endif
|
||||
|
||||
|
||||
static int menu_common_setting_set(unsigned id, unsigned action)
|
||||
static int menu_common_setting_set(unsigned id, unsigned action, rarch_setting_t *setting)
|
||||
{
|
||||
rarch_setting_t *current_setting;
|
||||
struct retro_perf_counter **counters;
|
||||
|
Loading…
Reference in New Issue
Block a user