chd: override config
authornotaz <notasas@gmail.com>
Tue, 22 Oct 2024 18:43:03 +0000 (21:43 +0300)
committernotaz <notasas@gmail.com>
Wed, 23 Oct 2024 21:17:36 +0000 (00:17 +0300)
relies on -Iinclude being before -Ideps/libchdr/include

include/libchdr/chdconfig.h [new file with mode: 0644]

diff --git a/include/libchdr/chdconfig.h b/include/libchdr/chdconfig.h
new file mode 100644 (file)
index 0000000..a1f9d04
--- /dev/null
@@ -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