Mercurial > repos > blastem
comparison genesis.c @ 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 | 372625dd9590 |
children | 00b6592cad42 |
comparison
equal
deleted
inserted
replaced
2087:3e0801280bef | 2088:c716af3f8980 |
---|---|
2129 } | 2129 } |
2130 gen->tmss_buffer = buffer; | 2130 gen->tmss_buffer = buffer; |
2131 } | 2131 } |
2132 memmap_chunk* map = info.map; | 2132 memmap_chunk* map = info.map; |
2133 uint32_t map_chunks = info.map_chunks; | 2133 uint32_t map_chunks = info.map_chunks; |
2134 if (info.wants_cd) { | 2134 if (info.wants_cd || (current_media()->chain && current_media()->chain->type == MEDIA_CDROM)) { |
2135 segacd_context *cd = alloc_configure_segacd((system_media *)current_media(), 0, force_region, &info); | 2135 segacd_context *cd = alloc_configure_segacd((system_media *)current_media(), 0, force_region, &info); |
2136 gen->expansion = cd; | 2136 gen->expansion = cd; |
2137 gen->version_reg &= ~NO_DISK; | 2137 gen->version_reg &= ~NO_DISK; |
2138 cd->genesis = gen; | 2138 cd->genesis = gen; |
2139 uint32_t cd_chunks; | 2139 uint32_t cd_chunks; |