changeset 2088:c716af3f8980

Enable Sega CD emulation for carts if a CD image is "locked-on" even if the cart does not specify that it uses the CD peripheral in the header
author Michael Pavone <pavone@retrodev.com>
date Sun, 06 Feb 2022 13:51:09 -0800
parents 3e0801280bef
children 0db3af42dd72
files genesis.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/genesis.c	Sat Feb 05 23:30:06 2022 -0800
+++ b/genesis.c	Sun Feb 06 13:51:09 2022 -0800
@@ -2131,7 +2131,7 @@
 	}
 	memmap_chunk* map = info.map;
 	uint32_t map_chunks = info.map_chunks;
-	if (info.wants_cd) {
+	if (info.wants_cd || (current_media()->chain && current_media()->chain->type == MEDIA_CDROM)) {
 		segacd_context *cd = alloc_configure_segacd((system_media *)current_media(), 0, force_region, &info);
 		gen->expansion = cd;
 		gen->version_reg &= ~NO_DISK;