Commit c1b248c8 authored by ekeeke's avatar ekeeke
Browse files

[Core/MD] added conditional support for libchdr before trying to load CHD file

parent 83a225cd
......@@ -751,6 +751,7 @@ int load_rom(char *filename)
int len;
char fname[256];
#if defined(USE_LIBCHDR)
/* automatically try to load associated .chd file if no .cue file CD image loaded yet */
if (!cdd.loaded)
{
......@@ -761,6 +762,7 @@ int load_rom(char *filename)
fname[len+4] = 0;
cdd_load(fname, (char *)cdc.ram);
}
#endif
/* automatically enable CD hardware emulation (Mode 1) in case : */
/* - loaded ROM has known CD hardware support */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment