mirror of
https://github.com/libretro/RetroArch
synced 2025-02-06 09:40:06 +00:00
Some C89_BUILD buildfixes
This commit is contained in:
parent
36587d99c2
commit
91a9a53a84
@ -290,6 +290,8 @@ static int playlist_association_left(unsigned type, const char *label,
|
|||||||
{
|
{
|
||||||
unsigned i;
|
unsigned i;
|
||||||
int next, found, current = 0;
|
int next, found, current = 0;
|
||||||
|
struct string_list *stnames = NULL;
|
||||||
|
struct string_list *stcores = NULL;
|
||||||
char core_path[PATH_MAX_LENGTH] = {0};
|
char core_path[PATH_MAX_LENGTH] = {0};
|
||||||
char new_playlist_cores[PATH_MAX_LENGTH] = {0};
|
char new_playlist_cores[PATH_MAX_LENGTH] = {0};
|
||||||
global_t *global = global_get_ptr();
|
global_t *global = global_get_ptr();
|
||||||
@ -299,8 +301,8 @@ static int playlist_association_left(unsigned type, const char *label,
|
|||||||
if (!list)
|
if (!list)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
struct string_list *stnames = string_split(settings->playlist_names, ";");
|
stnames = string_split(settings->playlist_names, ";");
|
||||||
struct string_list *stcores = string_split(settings->playlist_cores, ";");
|
stcores = string_split(settings->playlist_cores, ";");
|
||||||
|
|
||||||
if (!menu_playlist_find_associated_core(path, core_path, sizeof(core_path)))
|
if (!menu_playlist_find_associated_core(path, core_path, sizeof(core_path)))
|
||||||
strlcpy(core_path, "DETECT", sizeof(core_path));
|
strlcpy(core_path, "DETECT", sizeof(core_path));
|
||||||
|
@ -314,6 +314,8 @@ static int playlist_association_right(unsigned type, const char *label,
|
|||||||
{
|
{
|
||||||
size_t i, next, found, current = 0;
|
size_t i, next, found, current = 0;
|
||||||
char core_path[PATH_MAX_LENGTH] = {0};
|
char core_path[PATH_MAX_LENGTH] = {0};
|
||||||
|
struct string_list *stnames = NULL;
|
||||||
|
struct string_list *stcores = NULL;
|
||||||
char new_playlist_cores[PATH_MAX_LENGTH] = {0};
|
char new_playlist_cores[PATH_MAX_LENGTH] = {0};
|
||||||
global_t *global = global_get_ptr();
|
global_t *global = global_get_ptr();
|
||||||
settings_t *settings = config_get_ptr();
|
settings_t *settings = config_get_ptr();
|
||||||
@ -322,8 +324,8 @@ static int playlist_association_right(unsigned type, const char *label,
|
|||||||
if (!list)
|
if (!list)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
struct string_list *stnames = string_split(settings->playlist_names, ";");
|
stnames = string_split(settings->playlist_names, ";");
|
||||||
struct string_list *stcores = string_split(settings->playlist_cores, ";");
|
stcores = string_split(settings->playlist_cores, ";");
|
||||||
|
|
||||||
if (!menu_playlist_find_associated_core(path, core_path, sizeof(core_path)))
|
if (!menu_playlist_find_associated_core(path, core_path, sizeof(core_path)))
|
||||||
strlcpy(core_path, "DETECT", sizeof(core_path));
|
strlcpy(core_path, "DETECT", sizeof(core_path));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user