mirror of
https://github.com/libretro/RetroArch
synced 2025-01-29 00:32:49 +00:00
Shouldn't be there.
This commit is contained in:
parent
a3427ec732
commit
f7f4e1aad5
13
ssnes.c
13
ssnes.c
@ -311,20 +311,17 @@ int main(int argc, char *argv[])
|
||||
|
||||
fclose(file);
|
||||
|
||||
snes_load_cartridge_normal(NULL, rom_buf, length);
|
||||
if (!snes_load_cartridge_normal(NULL, rom_buf, length))
|
||||
{
|
||||
fprintf(stderr, "SSNES [ERROR] :: ROM file \"%s\" is not valid!\n", argv[1]);;
|
||||
goto error;
|
||||
}
|
||||
|
||||
free(rom_buf);
|
||||
|
||||
unsigned serial_size = snes_serialize_size();
|
||||
uint8_t *serial_data = malloc(serial_size);
|
||||
|
||||
if ( serial_size > (unsigned)length )
|
||||
{
|
||||
fprintf(stderr, "SSNES [ERROR] :: Length of save file does match size given by libsnes.\n");
|
||||
fprintf(stderr, "\tserial_size = %u, length = %u\n", serial_size, (unsigned)length);
|
||||
goto error;
|
||||
}
|
||||
|
||||
load_save_file(savefile_name_srm, SNES_MEMORY_CARTRIDGE_RAM);
|
||||
load_save_file(savefile_name_rtc, SNES_MEMORY_CARTRIDGE_RTC);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user