mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-07 19:01:14 +00:00
Make Android hack tinto generic hack for detecting the correct
core info file with the right core name
This commit is contained in:
parent
fa9ef5b021
commit
d132cfac7c
@ -86,21 +86,20 @@ static void print_buf_lines(file_list_t *list, char *buf, int buf_size,
|
|||||||
if (settings)
|
if (settings)
|
||||||
{
|
{
|
||||||
char core_path[PATH_MAX_LENGTH];
|
char core_path[PATH_MAX_LENGTH];
|
||||||
char display_name[PATH_MAX_LENGTH] = {0};
|
char display_name[PATH_MAX_LENGTH];
|
||||||
char *last = NULL;
|
char *last = NULL;
|
||||||
|
|
||||||
fill_pathname_join(core_path, settings->libretro_info_path,
|
fill_pathname_join(core_path, settings->libretro_info_path,
|
||||||
line_start, sizeof(core_path));
|
line_start, sizeof(core_path));
|
||||||
|
|
||||||
(void)last;
|
|
||||||
|
|
||||||
path_remove_extension(core_path);
|
path_remove_extension(core_path);
|
||||||
path_remove_extension(core_path);
|
path_remove_extension(core_path);
|
||||||
#ifdef ANDROID
|
|
||||||
last = (char*)strrchr(core_path, '_');
|
last = (char*)strrchr(core_path, '_');
|
||||||
if (*last)
|
if (*last)
|
||||||
*last = '\0';
|
{
|
||||||
#endif
|
if (strcmp(last, "_libretro"))
|
||||||
|
*last = '\0';
|
||||||
|
}
|
||||||
strlcat(core_path, ".info", sizeof(core_path));
|
strlcat(core_path, ".info", sizeof(core_path));
|
||||||
|
|
||||||
if (core_info_get_display_name(
|
if (core_info_get_display_name(
|
||||||
|
Loading…
Reference in New Issue
Block a user