Revert "[Core/Misc] removed unnecessary file loading check"

This reverts commit cc8a6725a7.
This commit is contained in:
ekeeke 2021-08-31 09:49:29 +02:00
parent 33bbc37f16
commit 1e5c2c0ef3

View File

@ -3,7 +3,7 @@
* ROM Loading Support
*
* Copyright (C) 1998-2003 Charles Mac Donald (original code)
* Copyright (C) 2007-2021 Eke-Eke (Genesis Plus GX)
* Copyright (C) 2007-2020 Eke-Eke (Genesis Plus GX)
*
* Redistribution and use of this code or any derivative works are permitted
* provided that the following conditions are met:
@ -570,9 +570,14 @@ int load_rom(char *filename)
/* auto-detect CD image file */
size = cdd_load(filename, (char *)(cart.rom));
if (size < 0)
{
/* error opening file */
return (0);
}
/* CD image file ? */
if (size > 0)
if (size)
{
/* enable CD hardware */
system_hw = SYSTEM_MCD;