Fix gamecrc parsing (#13872)

This commit is contained in:
Alexander Trufanov 2022-04-22 15:31:37 +03:00 committed by GitHub
parent b231ae7c41
commit 7f0cf651f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7825,7 +7825,7 @@ static void netplay_announce_cb(retro_task_t *task,
else if (string_is_equal(key, "game_name"))
strlcpy(host_room->gamename, value, sizeof(host_room->gamename));
else if (string_is_equal(key, "game_crc"))
sscanf(value, "%08d", &host_room->gamecrc);
sscanf(value, "%08lX", &host_room->gamecrc);
else if (string_is_equal(key, "host_method"))
sscanf(value, "%i", &host_room->host_method);
else if (string_is_equal(key, "has_password"))