From c1b248c8a7b4393b33a9cdab46722f621b1827f6 Mon Sep 17 00:00:00 2001 From: ekeeke Date: Fri, 1 Oct 2021 10:10:33 +0200 Subject: [PATCH] [Core/MD] added conditional support for libchdr before trying to load CHD file --- core/loadrom.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/loadrom.c b/core/loadrom.c index 26b1123..a8b2b08 100644 --- a/core/loadrom.c +++ b/core/loadrom.c @@ -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 */