Cleanups
This commit is contained in:
parent
a73c5327b1
commit
15780e7a87
|
@ -2327,6 +2327,7 @@ static void cb_generic_download(void *task_data,
|
||||||
{
|
{
|
||||||
static char shaderdir[PATH_MAX_LENGTH] = {0};
|
static char shaderdir[PATH_MAX_LENGTH] = {0};
|
||||||
const char *dirname = NULL;
|
const char *dirname = NULL;
|
||||||
|
|
||||||
if (transf->enum_idx == MENU_ENUM_LABEL_CB_UPDATE_SHADERS_CG)
|
if (transf->enum_idx == MENU_ENUM_LABEL_CB_UPDATE_SHADERS_CG)
|
||||||
dirname = "shaders_cg";
|
dirname = "shaders_cg";
|
||||||
else if (transf->enum_idx == MENU_ENUM_LABEL_CB_UPDATE_SHADERS_GLSL)
|
else if (transf->enum_idx == MENU_ENUM_LABEL_CB_UPDATE_SHADERS_GLSL)
|
||||||
|
@ -2338,13 +2339,13 @@ static void cb_generic_download(void *task_data,
|
||||||
settings->directory.video_shader,
|
settings->directory.video_shader,
|
||||||
dirname,
|
dirname,
|
||||||
sizeof(shaderdir));
|
sizeof(shaderdir));
|
||||||
if (!path_file_exists(shaderdir))
|
|
||||||
if (!path_mkdir(shaderdir))
|
if (!path_file_exists(shaderdir) && !path_mkdir(shaderdir))
|
||||||
goto finish;
|
goto finish;
|
||||||
|
|
||||||
dir_path = shaderdir;
|
dir_path = shaderdir;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
case MENU_ENUM_LABEL_CB_LAKKA_DOWNLOAD:
|
case MENU_ENUM_LABEL_CB_LAKKA_DOWNLOAD:
|
||||||
dir_path = LAKKA_UPDATE_DIR;
|
dir_path = LAKKA_UPDATE_DIR;
|
||||||
break;
|
break;
|
||||||
|
@ -3654,18 +3655,21 @@ static int menu_cbs_init_bind_ok_compare_label(menu_file_list_cbs_t *cbs,
|
||||||
{
|
{
|
||||||
unsigned first_char = 0;
|
unsigned first_char = 0;
|
||||||
const char *str = msg_hash_to_str(cbs->enum_idx);
|
const char *str = msg_hash_to_str(cbs->enum_idx);
|
||||||
|
|
||||||
if (!str)
|
if (!str)
|
||||||
continue;
|
continue;
|
||||||
if (!strstr(str, "input_binds_list"))
|
if (!strstr(str, "input_binds_list"))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
first_char = atoi(&str[0]);
|
first_char = atoi(&str[0]);
|
||||||
if (first_char == (i+1))
|
|
||||||
{
|
if (first_char != (i+1))
|
||||||
|
continue;
|
||||||
|
|
||||||
BIND_ACTION_OK(cbs, action_ok_push_user_binds_list);
|
BIND_ACTION_OK(cbs, action_ok_push_user_binds_list);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (menu_setting_get_browser_selection_type(cbs->setting) == ST_DIR)
|
if (menu_setting_get_browser_selection_type(cbs->setting) == ST_DIR)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue