mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 13:20:30 +00:00
Add FILE_PATH_LPL_EXTENSION
This commit is contained in:
parent
e9b39cc17f
commit
2dddc3fc88
@ -43,7 +43,8 @@ enum file_path_enum
|
||||
FILE_PATH_INDEX_EXTENDED_URL,
|
||||
FILE_PATH_SRM_EXTENSION,
|
||||
FILE_PATH_STATE_EXTENSION,
|
||||
FILE_PATH_CHT_EXTENSION
|
||||
FILE_PATH_CHT_EXTENSION,
|
||||
FILE_PATH_LPL_EXTENSION
|
||||
};
|
||||
|
||||
enum application_special_type
|
||||
|
@ -25,6 +25,8 @@ const char *file_path_str(enum file_path_enum enum_idx)
|
||||
return ".srm";
|
||||
case FILE_PATH_STATE_EXTENSION:
|
||||
return ".state";
|
||||
case FILE_PATH_LPL_EXTENSION:
|
||||
return ".lpl";
|
||||
case FILE_PATH_INDEX_URL:
|
||||
return ".index";
|
||||
case FILE_PATH_INDEX_DIRS_URL:
|
||||
|
@ -26,6 +26,7 @@
|
||||
#include "../../input/input_config.h"
|
||||
|
||||
#include "../../core_info.h"
|
||||
#include "../../file_path_special.h"
|
||||
#include "../../managers/core_option_manager.h"
|
||||
#include "../../managers/cheat_manager.h"
|
||||
#include "../../general.h"
|
||||
@ -1198,7 +1199,9 @@ static void menu_action_setting_disp_set_label_playlist_associations(file_list_t
|
||||
*w = 19;
|
||||
|
||||
strlcpy(playlist_name_with_ext, path, sizeof(playlist_name_with_ext));
|
||||
strlcat(playlist_name_with_ext, ".lpl", sizeof(playlist_name_with_ext));
|
||||
strlcat(playlist_name_with_ext,
|
||||
file_path_str(FILE_PATH_LPL_EXTENSION),
|
||||
sizeof(playlist_name_with_ext));
|
||||
|
||||
for (i = 0; i < str_list->size; i++)
|
||||
{
|
||||
|
@ -1252,7 +1252,7 @@ static void xmb_context_destroy_horizontal_list(xmb_handle_t *xmb)
|
||||
file_list_get_at_offset(xmb->horizontal_list, i,
|
||||
&path, NULL, NULL, NULL);
|
||||
|
||||
if (!path || !strstr(path, ".lpl"))
|
||||
if (!path || !strstr(path, file_path_str(FILE_PATH_LPL_EXTENSION)))
|
||||
continue;
|
||||
|
||||
video_driver_texture_unload(&node->icon);
|
||||
@ -1355,7 +1355,7 @@ static void xmb_context_reset_horizontal_list(
|
||||
if (!path)
|
||||
continue;
|
||||
|
||||
if (!strstr(path, ".lpl"))
|
||||
if (!strstr(path, file_path_str(FILE_PATH_LPL_EXTENSION)))
|
||||
continue;
|
||||
|
||||
strlcpy(sysname, path, sizeof(sysname));
|
||||
|
@ -1742,7 +1742,9 @@ static int menu_displaylist_parse_database_entry(menu_displaylist_info_t *info)
|
||||
fill_short_pathname_representation(path_base, info->path,
|
||||
sizeof(path_base));
|
||||
path_remove_extension(path_base);
|
||||
strlcat(path_base, ".lpl", sizeof(path_base));
|
||||
strlcat(path_base,
|
||||
file_path_str(FILE_PATH_LPL_EXTENSION),
|
||||
sizeof(path_base));
|
||||
|
||||
fill_pathname_join(path_playlist, settings->directory.playlist, path_base,
|
||||
sizeof(path_playlist));
|
||||
|
@ -28,6 +28,7 @@
|
||||
#include "../database_info.h"
|
||||
#endif
|
||||
|
||||
#include "../file_path_special.h"
|
||||
#include "../list_special.h"
|
||||
#include "../msg_hash.h"
|
||||
#include "../playlist.h"
|
||||
@ -276,7 +277,9 @@ static int database_info_list_iterate_found_match(
|
||||
|
||||
path_remove_extension(db_playlist_base_str);
|
||||
|
||||
strlcat(db_playlist_base_str, ".lpl", sizeof(db_playlist_base_str));
|
||||
strlcat(db_playlist_base_str,
|
||||
file_path_str(FILE_PATH_LPL_EXTENSION),
|
||||
sizeof(db_playlist_base_str));
|
||||
fill_pathname_join(db_playlist_path, settings->directory.playlist,
|
||||
db_playlist_base_str, sizeof(db_playlist_path));
|
||||
|
||||
|
@ -22,6 +22,8 @@
|
||||
#include <QDebug>
|
||||
#include <QQmlContext>
|
||||
|
||||
#include "../../../../file_path_special.h"
|
||||
|
||||
QObject *topLevel;
|
||||
|
||||
int Wimp::CreateMainWindow()
|
||||
@ -57,7 +59,7 @@ void Wimp::GetSettings(settings_t *s)
|
||||
void Wimp::GetCollections(char* path)
|
||||
{
|
||||
QDir dir(path);
|
||||
dir.setNameFilters(QStringList("*.lpl"));
|
||||
dir.setNameFilters(QStringList(file_path_str(FILE_PATH_LPL_EXTENSION)));
|
||||
QStringList fileList = dir.entryList();
|
||||
|
||||
if(fileList.count() == 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user