mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-11-14 06:45:09 +01:00
Revert "[Core/Misc] removed unnecessary file loading check"
This reverts commit cc8a6725a7
.
This commit is contained in:
parent
33bbc37f16
commit
1e5c2c0ef3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user