mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
(Cheevos) When parsing M3U files, only capture the first entry
This commit is contained in:
parent
21ad64ab77
commit
eb429f9211
@ -2990,7 +2990,9 @@ bool rcheevos_load(const void *data)
|
||||
/* Check whether this is an m3u file */
|
||||
if (m3u_file_is_m3u(coro->path))
|
||||
{
|
||||
m3u_file_t *m3u_file = m3u_file_init(coro->path, M3U_FILE_SIZE);
|
||||
/* Note: We only need the first entry, so limit
|
||||
* capacity of m3u_file object to 1 */
|
||||
m3u_file_t *m3u_file = m3u_file_init(coro->path, 1);
|
||||
|
||||
if (m3u_file)
|
||||
{
|
||||
@ -3037,6 +3039,5 @@ bool rcheevos_load(const void *data)
|
||||
CHEEVOS_UNLOCK(rcheevos_locals.task_lock);
|
||||
|
||||
task_queue_push(task);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user