mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-11-13 06:15:07 +01:00
[Core/MD] added conditional support for libchdr before trying to load CHD file
This commit is contained in:
parent
83a225cd32
commit
c1b248c8a7
@ -751,6 +751,7 @@ int load_rom(char *filename)
|
|||||||
int len;
|
int len;
|
||||||
char fname[256];
|
char fname[256];
|
||||||
|
|
||||||
|
#if defined(USE_LIBCHDR)
|
||||||
/* automatically try to load associated .chd file if no .cue file CD image loaded yet */
|
/* automatically try to load associated .chd file if no .cue file CD image loaded yet */
|
||||||
if (!cdd.loaded)
|
if (!cdd.loaded)
|
||||||
{
|
{
|
||||||
@ -761,6 +762,7 @@ int load_rom(char *filename)
|
|||||||
fname[len+4] = 0;
|
fname[len+4] = 0;
|
||||||
cdd_load(fname, (char *)cdc.ram);
|
cdd_load(fname, (char *)cdc.ram);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* automatically enable CD hardware emulation (Mode 1) in case : */
|
/* automatically enable CD hardware emulation (Mode 1) in case : */
|
||||||
/* - loaded ROM has known CD hardware support */
|
/* - loaded ROM has known CD hardware support */
|
||||||
|
Loading…
Reference in New Issue
Block a user