mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2025-01-28 02:45:27 +01:00
Revert "[Core/Misc] removed unnecessary file loading check"
This reverts commit cc8a6725a7d46df4032f4272e07d9a61652a30ae.
This commit is contained in:
parent
33bbc37f16
commit
1e5c2c0ef3
@ -3,7 +3,7 @@
|
|||||||
* ROM Loading Support
|
* ROM Loading Support
|
||||||
*
|
*
|
||||||
* Copyright (C) 1998-2003 Charles Mac Donald (original code)
|
* 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
|
* Redistribution and use of this code or any derivative works are permitted
|
||||||
* provided that the following conditions are met:
|
* provided that the following conditions are met:
|
||||||
@ -570,9 +570,14 @@ int load_rom(char *filename)
|
|||||||
|
|
||||||
/* auto-detect CD image file */
|
/* auto-detect CD image file */
|
||||||
size = cdd_load(filename, (char *)(cart.rom));
|
size = cdd_load(filename, (char *)(cart.rom));
|
||||||
|
if (size < 0)
|
||||||
|
{
|
||||||
|
/* error opening file */
|
||||||
|
return (0);
|
||||||
|
}
|
||||||
|
|
||||||
/* CD image file ? */
|
/* CD image file ? */
|
||||||
if (size > 0)
|
if (size)
|
||||||
{
|
{
|
||||||
/* enable CD hardware */
|
/* enable CD hardware */
|
||||||
system_hw = SYSTEM_MCD;
|
system_hw = SYSTEM_MCD;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user