mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2025-02-05 06:26:23 +01:00
[Core/Misc] removed unnecessary file loading check
This commit is contained in:
parent
1e0d2dad8f
commit
cc8a6725a7
@ -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-2020 Eke-Eke (Genesis Plus GX)
|
* Copyright (C) 2007-2021 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,14 +570,9 @@ 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)
|
if (size > 0)
|
||||||
{
|
{
|
||||||
/* enable CD hardware */
|
/* enable CD hardware */
|
||||||
system_hw = SYSTEM_MCD;
|
system_hw = SYSTEM_MCD;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user