mirror of
https://github.com/libretro/RetroArch
synced 2025-03-30 07:20:36 +00:00
Do not exit() prematurely.
This commit is contained in:
parent
3556445660
commit
e412ecdefe
7
file.c
7
file.c
@ -754,7 +754,7 @@ static bool load_normal_rom(void)
|
|||||||
if (!g_extern.rom_file)
|
if (!g_extern.rom_file)
|
||||||
{
|
{
|
||||||
SSNES_ERR("Implementation requires a full path to be set, cannot load ROM from stdin. Aborting ...\n");
|
SSNES_ERR("Implementation requires a full path to be set, cannot load ROM from stdin. Aborting ...\n");
|
||||||
exit(1);
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
fclose(g_extern.rom_file);
|
fclose(g_extern.rom_file);
|
||||||
@ -767,12 +767,11 @@ static bool load_normal_rom(void)
|
|||||||
{
|
{
|
||||||
SSNES_ERR("ROM file is not valid!\n");
|
SSNES_ERR("ROM file is not valid!\n");
|
||||||
free(rom_buf);
|
free(rom_buf);
|
||||||
|
free(xml_buf);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (xml_buf)
|
free(xml_buf);
|
||||||
free(xml_buf);
|
|
||||||
|
|
||||||
free(rom_buf);
|
free(rom_buf);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user