Create setting_is_of_path_type

This commit is contained in:
twinaphex 2015-05-06 00:50:15 +02:00
parent e3dc04d602
commit 67ca5b60c1
2 changed files with 14 additions and 0 deletions

View File

@ -6617,3 +6617,15 @@ error:
return NULL;
}
bool setting_is_of_path_type(rarch_setting_t *setting)
{
if (
setting &&
setting->type == ST_ACTION &&
(setting->flags & SD_FLAG_BROWSER_ACTION) &&
setting->action_toggle &&
setting->change_handler)
return true;
return false;
}

View File

@ -343,6 +343,8 @@ void setting_get_label(file_list_t *list, char *type_str,
**/
rarch_setting_t* setting_new(unsigned mask);
bool setting_is_of_path_type(rarch_setting_t *setting);
#ifdef __cplusplus
}
#endif