mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
Add FILE_PATH_CORE_INFO_EXTENSION
This commit is contained in:
parent
3cd76a6849
commit
f017c64220
@ -45,7 +45,8 @@ enum file_path_enum
|
||||
FILE_PATH_STATE_EXTENSION,
|
||||
FILE_PATH_RTC_EXTENSION,
|
||||
FILE_PATH_CHT_EXTENSION,
|
||||
FILE_PATH_LPL_EXTENSION
|
||||
FILE_PATH_LPL_EXTENSION,
|
||||
FILE_PATH_CORE_INFO_EXTENSION
|
||||
};
|
||||
|
||||
enum application_special_type
|
||||
|
@ -19,6 +19,8 @@ const char *file_path_str(enum file_path_enum enum_idx)
|
||||
{
|
||||
switch (enum_idx)
|
||||
{
|
||||
case FILE_PATH_CORE_INFO_EXTENSION:
|
||||
return ".info";
|
||||
case FILE_PATH_RTC_EXTENSION:
|
||||
return ".rtc";
|
||||
case FILE_PATH_CHT_EXTENSION:
|
||||
|
@ -132,7 +132,9 @@ static void print_buf_lines(file_list_t *list, char *buf,
|
||||
if (!string_is_equal(last, "_libretro"))
|
||||
*last = '\0';
|
||||
}
|
||||
strlcat(core_path, ".info", sizeof(core_path));
|
||||
strlcat(core_path,
|
||||
file_path_str(FILE_PATH_CORE_INFO_EXTENSION),
|
||||
sizeof(core_path));
|
||||
|
||||
if (core_info_get_display_name(
|
||||
core_path, display_name, sizeof(display_name)))
|
||||
@ -236,12 +238,14 @@ static void print_buf_lines_extended(file_list_t *list, char *buf, int buf_size,
|
||||
path_remove_extension(core_path);
|
||||
path_remove_extension(core_path);
|
||||
last = (char*)strrchr(core_path, '_');
|
||||
if (*last)
|
||||
if (!string_is_empty(last))
|
||||
{
|
||||
if (!string_is_equal(last, "_libretro"))
|
||||
*last = '\0';
|
||||
}
|
||||
strlcat(core_path, ".info", sizeof(core_path));
|
||||
strlcat(core_path,
|
||||
file_path_str(FILE_PATH_CORE_INFO_EXTENSION),
|
||||
sizeof(core_path));
|
||||
|
||||
if (core_info_get_display_name(
|
||||
core_path, display_name, sizeof(display_name)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user