Fix crc32 comparision (#13884)

As state->content_crc has "|crc" suffix.
This commit is contained in:
Alexander Trufanov 2022-04-25 16:40:25 +03:00 committed by GitHub
parent 2864f70bd9
commit f377c0d041
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -288,7 +288,7 @@ static void task_netplay_crc_scan_handler(retro_task_t *task)
playlist_path = playlist_entry->path;
playlist_crc32 = playlist_entry->crc32;
if (have_crc && string_is_equal(playlist_crc32, state->content_crc))
if (have_crc && string_starts_with(state->content_crc, playlist_crc32))
{
RARCH_LOG("[Lobby]: CRC match %s\n", playlist_crc32);
strlcpy(state->content_path, playlist_path, sizeof(state->content_path));