mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
Merge pull request #5889 from hiddenasbestos/relpath_dup_fix
Playlist duplication fixes
This commit is contained in:
commit
22d8d35721
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. */
|
||||
|
@ -996,7 +996,7 @@ static bool command_event_cmd_exec(const char *data,
|
||||
|
||||
#if defined(HAVE_DYNAMIC)
|
||||
if (!task_load_content(&content_info, content_ctx,
|
||||
false, launched_from_cli, error_string))
|
||||
true, launched_from_cli, error_string))
|
||||
return false;
|
||||
#else
|
||||
frontend_driver_set_fork(FRONTEND_FORK_CORE_WITH_ARGS);
|
||||
|
Loading…
x
Reference in New Issue
Block a user