mirror of
https://github.com/libretro/RetroArch
synced 2025-03-30 07:20:36 +00:00
Get rid of content_playlist_get* functions
This commit is contained in:
parent
b8c5caa749
commit
56540b5af4
39
playlist.c
39
playlist.c
@ -247,42 +247,3 @@ error:
|
||||
content_playlist_free(playlist);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
const char* content_playlist_get_path(content_playlist_t *playlist, unsigned index)
|
||||
{
|
||||
const char *path, *core_path, *core_name = NULL;
|
||||
if (!playlist)
|
||||
return "";
|
||||
|
||||
content_playlist_get_index(playlist, index, &path, &core_path, &core_name);
|
||||
|
||||
if (path)
|
||||
return path;
|
||||
return "";
|
||||
}
|
||||
|
||||
const char *content_playlist_get_core_path(content_playlist_t *playlist, unsigned index)
|
||||
{
|
||||
const char *path, *core_path, *core_name = NULL;
|
||||
if (!playlist)
|
||||
return "";
|
||||
|
||||
content_playlist_get_index(playlist, index, &path, &core_path, &core_name);
|
||||
|
||||
if (core_path)
|
||||
return core_path;
|
||||
return "";
|
||||
}
|
||||
|
||||
const char *content_playlist_get_core_name(content_playlist_t *playlist, unsigned index)
|
||||
{
|
||||
const char *path, *core_path, *core_name = NULL;
|
||||
if (!playlist)
|
||||
return "";
|
||||
|
||||
content_playlist_get_index(playlist, index, &path, &core_path, &core_name);
|
||||
|
||||
if (core_name)
|
||||
return core_name;
|
||||
return "";
|
||||
}
|
||||
|
@ -40,13 +40,6 @@ void content_playlist_push(content_playlist_t *playlist,
|
||||
const char *path, const char *core_path,
|
||||
const char *core_name);
|
||||
|
||||
const char* content_playlist_get_path(content_playlist_t *playlist,
|
||||
unsigned index);
|
||||
const char* content_playlist_get_core_path(content_playlist_t *playlist,
|
||||
unsigned index);
|
||||
const char* content_playlist_get_core_name(content_playlist_t *playlist,
|
||||
unsigned index);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user