Merge pull request #636 from Stargazer-24/master

[Core/MD] Added support for "Death & Lead" game (aftermarket)
This commit is contained in:
ekeeke
2026-03-24 20:23:28 +01:00
committed by GitHub
3 changed files with 32 additions and 5 deletions
+27
View File
@@ -728,6 +728,33 @@ void md_cart_init(void)
zbank_memory_map[i].write = zbank_unused_w;
}
}
else if (strstr(rominfo.ROMType, "GM") && strstr(rominfo.product, "00000000-00") &&
((rominfo.checksum == 0x2284) && (rominfo.realchecksum == 0x8dcf))) /* Death & Lead */
{
/* KAISER WAVE board !TIME handler */
cart.hw.time_w = mapper_kaiserwave_w;
/* enable YX5200 hardware */
cart.special |= HW_YX5200;
/* allocate & clear blip buffer for YX5200 audio stream */
snd.blips[3] = blip_new(snd.sample_rate / 10);
if (snd.blips[3]) blip_clear(snd.blips[3]);
/* initialize YX5200 audio */
yx5200_init(snd.sample_rate);
/* 64M extension mapping (upper 4MB of flash memory is apparently unused but cartridge board uses same signals as described in https://gitlab.com/doragasu/flatmap64) */
for (i=0x40; i<0x80; i++)
{
m68k.memory_map[i].read8 = NULL;
m68k.memory_map[i].read16 = NULL;
m68k.memory_map[i].write8 = NULL;
m68k.memory_map[i].write16 = NULL;
zbank_memory_map[i].read = NULL;
zbank_memory_map[i].write = NULL;
}
}
else if (strstr(rominfo.international, "COLOCODX")) /* ColocoDX */
{
/* CFI flash memory OTP area (credit to Stargazer) */
@@ -308,7 +308,7 @@
<ClInclude Include="..\..\core\input_hw\lightgun.h" />
<ClInclude Include="..\..\core\input_hw\mouse.h" />
<ClInclude Include="..\..\core\input_hw\paddle.h" />
<ClCompile Include="..\..\core\input_hw\smash.h" />
<ClInclude Include="..\..\core\input_hw\smash.h" />
<ClInclude Include="..\..\core\input_hw\sportspad.h" />
<ClInclude Include="..\..\core\input_hw\teamplayer.h" />
<ClInclude Include="..\..\core\input_hw\terebi_oekaki.h" />
@@ -370,4 +370,4 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
</Project>
@@ -512,9 +512,6 @@
<ClInclude Include="..\..\core\input_hw\paddle.h">
<Filter>core\input_hw</Filter>
</ClInclude>
<ClInclude Include="..\..\core\input_hw\smash.h">
<Filter>core\input_hw</Filter>
</ClInclude>
<ClInclude Include="..\..\core\input_hw\sportspad.h">
<Filter>core\input_hw</Filter>
</ClInclude>
@@ -743,5 +740,8 @@
<ClInclude Include="..\..\core\cd_hw\libchdr\deps\zstd-1.5.6\lib\zstd.h">
<Filter>core\cd_hw\libchdr\deps\zstd-1.5.6</Filter>
</ClInclude>
<ClInclude Include="..\..\core\input_hw\smash.h">
<Filter>core\input_hw</Filter>
</ClInclude>
</ItemGroup>
</Project>