mirror of
https://github.com/libretro/RetroArch
synced 2025-02-06 00:39:53 +00:00
C89_BUILD fixes
This commit is contained in:
parent
b97558d504
commit
cc8e897222
@ -32,11 +32,11 @@ RETRO_BEGIN_DECLS
|
|||||||
|
|
||||||
typedef struct chdstream chdstream_t;
|
typedef struct chdstream chdstream_t;
|
||||||
|
|
||||||
// First data track
|
/* First data track */
|
||||||
#define CHDSTREAM_TRACK_FIRST_DATA (-1)
|
#define CHDSTREAM_TRACK_FIRST_DATA (-1)
|
||||||
// Last track
|
/* Last track */
|
||||||
#define CHDSTREAM_TRACK_LAST (-2)
|
#define CHDSTREAM_TRACK_LAST (-2)
|
||||||
// Primary (largest) data track, used for CRC identification purposes
|
/* Primary (largest) data track, used for CRC identification purposes */
|
||||||
#define CHDSTREAM_TRACK_PRIMARY (-3)
|
#define CHDSTREAM_TRACK_PRIMARY (-3)
|
||||||
|
|
||||||
chdstream_t *chdstream_open(const char *path, int32_t track);
|
chdstream_t *chdstream_open(const char *path, int32_t track);
|
||||||
|
@ -1137,18 +1137,22 @@ static void task_database_handler(retro_task_t *task)
|
|||||||
* save time by only processing that database. */
|
* save time by only processing that database. */
|
||||||
if (dbstate->list && db->is_directory)
|
if (dbstate->list && db->is_directory)
|
||||||
{
|
{
|
||||||
|
size_t i;
|
||||||
char *dirname = find_last_slash(db->fullpath) + 1;
|
char *dirname = find_last_slash(db->fullpath) + 1;
|
||||||
|
|
||||||
for (size_t i = 0; i < dbstate->list->size; i++)
|
for (i = 0; i < dbstate->list->size; i++)
|
||||||
{
|
{
|
||||||
|
char *dbname;
|
||||||
char *dbpath = strdup(dbstate->list->elems[i].data);
|
char *dbpath = strdup(dbstate->list->elems[i].data);
|
||||||
path_remove_extension(dbpath);
|
path_remove_extension(dbpath);
|
||||||
char *dbname = find_last_slash(dbpath) + 1;
|
|
||||||
|
dbname = find_last_slash(dbpath) + 1;
|
||||||
|
|
||||||
if (strcasecmp(dbname, dirname) == 0)
|
if (strcasecmp(dbname, dirname) == 0)
|
||||||
{
|
{
|
||||||
|
struct string_list *single_list = NULL;
|
||||||
free(dbpath);
|
free(dbpath);
|
||||||
struct string_list *single_list = string_list_new();
|
single_list = string_list_new();
|
||||||
string_list_append(single_list, dbstate->list->elems[i].data,
|
string_list_append(single_list, dbstate->list->elems[i].data,
|
||||||
dbstate->list->elems[i].attr);
|
dbstate->list->elems[i].attr);
|
||||||
dir_list_free(dbstate->list);
|
dir_list_free(dbstate->list);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user