C89_BUILD buildfixes
This commit is contained in:
parent
91a9a53a84
commit
3e8659cdb9
|
@ -290,6 +290,7 @@ static int playlist_association_left(unsigned type, const char *label,
|
|||
{
|
||||
unsigned i;
|
||||
int next, found, current = 0;
|
||||
core_info_t *info = NULL;
|
||||
struct string_list *stnames = NULL;
|
||||
struct string_list *stcores = NULL;
|
||||
char core_path[PATH_MAX_LENGTH] = {0};
|
||||
|
@ -323,8 +324,7 @@ static int playlist_association_left(unsigned type, const char *label,
|
|||
next = 0;
|
||||
}
|
||||
|
||||
core_info_t *info = core_info_get(list, next);
|
||||
|
||||
info = core_info_get(list, next);
|
||||
found = string_list_find_elem(stnames, path);
|
||||
if (found)
|
||||
string_list_set(stcores, found-1, info->path);
|
||||
|
|
|
@ -314,6 +314,7 @@ static int playlist_association_right(unsigned type, const char *label,
|
|||
{
|
||||
size_t i, next, found, current = 0;
|
||||
char core_path[PATH_MAX_LENGTH] = {0};
|
||||
core_info_t *info = NULL;
|
||||
struct string_list *stnames = NULL;
|
||||
struct string_list *stcores = NULL;
|
||||
char new_playlist_cores[PATH_MAX_LENGTH] = {0};
|
||||
|
@ -346,7 +347,7 @@ static int playlist_association_right(unsigned type, const char *label,
|
|||
next = 0;
|
||||
}
|
||||
|
||||
core_info_t *info = core_info_get(list, next);
|
||||
info = core_info_get(list, next);
|
||||
|
||||
found = string_list_find_elem(stnames, path);
|
||||
if (found)
|
||||
|
|
|
@ -270,6 +270,8 @@ static int action_start_playlist_association(unsigned type, const char *label)
|
|||
{
|
||||
int found;
|
||||
char new_playlist_cores[PATH_MAX_LENGTH] = {0};
|
||||
struct string_list *stnames = NULL;
|
||||
struct string_list *stcores = NULL;
|
||||
global_t *global = global_get_ptr();
|
||||
settings_t *settings = config_get_ptr();
|
||||
const char *path = path_basename(label);
|
||||
|
@ -277,10 +279,10 @@ static int action_start_playlist_association(unsigned type, const char *label)
|
|||
if (!list)
|
||||
return -1;
|
||||
|
||||
struct string_list *stnames = string_split(settings->playlist_names, ";");
|
||||
struct string_list *stcores = string_split(settings->playlist_cores, ";");
|
||||
stnames = string_split(settings->playlist_names, ";");
|
||||
stcores = string_split(settings->playlist_cores, ";");
|
||||
found = string_list_find_elem(stnames, path);
|
||||
|
||||
found = string_list_find_elem(stnames, path);
|
||||
if (found)
|
||||
string_list_set(stcores, found-1, "DETECT");
|
||||
|
||||
|
|
|
@ -1302,8 +1302,9 @@ bool START_SUB_GROUP(rarch_setting_t **list,
|
|||
rarch_setting_group_info_t *subgroup_info,
|
||||
const char *parent_group)
|
||||
{
|
||||
rarch_setting_t value;
|
||||
subgroup_info->name = name;
|
||||
rarch_setting_t value = setting_subgroup_setting (ST_SUB_GROUP, name, group_info->name, parent_group);
|
||||
value = setting_subgroup_setting (ST_SUB_GROUP, name, group_info->name, parent_group);
|
||||
if (!(menu_settings_list_append(list, list_info, value)))
|
||||
return false;
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue