From 4880db0ee282da1c79fc851104fcde29f1fb69d5 Mon Sep 17 00:00:00 2001 From: notaz Date: Tue, 22 Oct 2024 21:43:03 +0300 Subject: [PATCH] chd: override config relies on -Iinclude being before -Ideps/libchdr/include --- include/libchdr/chdconfig.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 include/libchdr/chdconfig.h diff --git a/include/libchdr/chdconfig.h b/include/libchdr/chdconfig.h new file mode 100644 index 00000000..a1f9d041 --- /dev/null +++ b/include/libchdr/chdconfig.h @@ -0,0 +1,15 @@ +#ifndef __CHDCONFIG_H__ +#define __CHDCONFIG_H__ + +/* this overrides deps/libchdr/include/libchdr/chdconfig.h */ +#define WANT_SUBCODE 1 +#define NEED_CACHE_HUNK 1 + +#if defined(__x86_64__) || defined(__aarch64__) +#define WANT_RAW_DATA_SECTOR 1 +#define VERIFY_BLOCK_CRC 1 +#else +// assume some slower hw so no ecc that most (all?) games don't need +#endif + +#endif -- 2.39.5