mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
On Windows builds, don't use case sensitive path comparisons when pushing to a playlist.
This commit is contained in:
parent
004c1d2f0a
commit
deb017e17f
12
playlist.c
12
playlist.c
@ -309,9 +309,17 @@ bool playlist_push(playlist_t *playlist,
|
||||
for (i = 0; i < playlist->size; i++)
|
||||
{
|
||||
struct playlist_entry tmp;
|
||||
bool equal_path = (!path && !playlist->entries[i].path) ||
|
||||
bool equal_path;
|
||||
|
||||
equal_path = (!path && !playlist->entries[i].path) ||
|
||||
(path && playlist->entries[i].path &&
|
||||
string_is_equal(path,playlist->entries[i].path));
|
||||
#ifdef _WIN32
|
||||
/*prevent duplicates on case-insensitive operating systems*/
|
||||
string_is_equal_noncase(path,playlist->entries[i].path)
|
||||
#else
|
||||
string_is_equal(path,playlist->entries[i].path)
|
||||
#endif
|
||||
);
|
||||
|
||||
/* Core name can have changed while still being the same core.
|
||||
* Differentiate based on the core path only. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user