mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
(Menu entries cbs) Move another setting over
This commit is contained in:
parent
4dade7cc0b
commit
65bfe816d0
@ -222,11 +222,6 @@ static int menu_setting_ok_toggle(unsigned type,
|
||||
else if (!strcmp(label, "video_shader_preset_save_as"))
|
||||
menu_key_start_line(driver.menu, "Preset Filename",
|
||||
label, st_string_callback);
|
||||
else if (!strcmp(label, "shader_apply_changes"))
|
||||
{
|
||||
rarch_main_command(RARCH_CMD_SHADERS_APPLY_CHANGES);
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
else if (type == MENU_SETTINGS_CUSTOM_BIND_DEFAULT_ALL)
|
||||
{
|
||||
|
@ -15,6 +15,7 @@
|
||||
|
||||
#include "menu_common.h"
|
||||
#include "menu_entries.h"
|
||||
#include "menu_shader.h"
|
||||
#include "backend/menu_backend.h"
|
||||
|
||||
/* TODO - return with error values. */
|
||||
@ -42,6 +43,13 @@ static int action_ok_push_history_or_path_list(const char *path,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int action_ok_shader_apply_changes(const char *path,
|
||||
const char *label, unsigned type, size_t index)
|
||||
{
|
||||
rarch_main_command(RARCH_CMD_SHADERS_APPLY_CHANGES);
|
||||
return 0;
|
||||
}
|
||||
|
||||
void menu_entries_cbs_init(void *data,
|
||||
const char *path, const char *label,
|
||||
unsigned type, size_t index)
|
||||
@ -68,4 +76,6 @@ void menu_entries_cbs_init(void *data,
|
||||
menu_common_type_is(label, type) == MENU_FILE_DIRECTORY
|
||||
)
|
||||
cbs->action_ok = action_ok_push_history_or_path_list;
|
||||
else if (!strcmp(label, "shader_apply_changes"))
|
||||
cbs->action_ok = action_ok_shader_apply_changes;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user