static int menu_action_handle_setting(rarch_setting_t *setting, unsigned type, unsigned action, bool wraparound) { menu_handle_t *menu = menu_driver_get_ptr(); if (!setting) return -1; switch (setting->type) { case ST_PATH: if (action == MENU_ACTION_OK) menu_list_push_stack_refresh( menu->menu_list, setting->default_value.string, setting->name, type, menu->navigation.selection_ptr); /* fall-through. */ case ST_BOOL: case ST_INT: case ST_UINT: case ST_HEX: case ST_FLOAT: case ST_STRING: case ST_DIR: case ST_BIND: case ST_ACTION: return menu_setting_handler(setting, action); default: break; } return -1; }
static int action_toggle_shader_filter_default(unsigned type, const char *label, unsigned action) { #ifdef HAVE_SHADER_MANAGER rarch_setting_t *setting = menu_setting_find("video_smooth"); if (setting) menu_setting_handler(setting, action); #endif return 0; }