mirror of
https://github.com/libretro/RetroArch
synced 2025-04-25 09:02:44 +00:00
C89 buildfix
This commit is contained in:
parent
6048eba78a
commit
0f8cf1a579
@ -2571,6 +2571,7 @@ enum
|
|||||||
|
|
||||||
static int cheevos_iterate(coro_t *coro)
|
static int cheevos_iterate(coro_t *coro)
|
||||||
{
|
{
|
||||||
|
const int SNES_HEADER_LEN = 0x200;
|
||||||
ssize_t num_read = 0;
|
ssize_t num_read = 0;
|
||||||
size_t to_read = 4096;
|
size_t to_read = 4096;
|
||||||
uint8_t *buffer = NULL;
|
uint8_t *buffer = NULL;
|
||||||
@ -2903,8 +2904,6 @@ found:
|
|||||||
/* Checks for the existence of a headered SNES file.
|
/* Checks for the existence of a headered SNES file.
|
||||||
Unheadered files fall back to GENERIC_MD5. */
|
Unheadered files fall back to GENERIC_MD5. */
|
||||||
|
|
||||||
const int SNES_HEADER_LEN = 0x200;
|
|
||||||
|
|
||||||
if (coro->len < 0x2000 || coro->len % 0x2000 != SNES_HEADER_LEN)
|
if (coro->len < 0x2000 || coro->len % 0x2000 != SNES_HEADER_LEN)
|
||||||
{
|
{
|
||||||
coro->gameid = 0;
|
coro->gameid = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user