Add default eeprom for Thunder Cross II to allow stereo sound (Dink, IQ_132)

This commit is contained in:
iq_132 2014-06-22 19:35:33 +00:00
parent 5d071c7509
commit 38358828ab
2 changed files with 23 additions and 8 deletions

View File

@ -447,7 +447,7 @@ static struct BurnDIPInfo NemesisDIPList[]=
{0, 0xfe, 0, 3, "Color Settings" }, {0, 0xfe, 0, 3, "Color Settings" },
{0x17, 0x01, 0x03, 0x00, "Proper Colors (Dark)" }, {0x17, 0x01, 0x03, 0x00, "Proper Colors (Dark)" },
{0x17, 0x01, 0x03, 0x01, "Light Colors" }, {0x17, 0x01, 0x03, 0x01, "Light Colors" },
{0x17, 0x01, 0x03, 0x02, "MAMEFx Colors (Mid)" }, {0x17, 0x01, 0x03, 0x02, "MAMEUIFx Colors (Mid)"},
}; };
STDDIPINFO(Nemesis) STDDIPINFO(Nemesis)
@ -662,7 +662,7 @@ static struct BurnDIPInfo TwinbeeDIPList[]=
{0, 0xfe, 0, 3, "Color Settings" }, {0, 0xfe, 0, 3, "Color Settings" },
{0x15, 0x01, 0x03, 0x00, "Proper Colors (Dark)" }, {0x15, 0x01, 0x03, 0x00, "Proper Colors (Dark)" },
{0x15, 0x01, 0x03, 0x01, "Light Colors" }, {0x15, 0x01, 0x03, 0x01, "Light Colors" },
{0x17, 0x01, 0x03, 0x02, "MAMEFx Colors (Mid)" }, {0x17, 0x01, 0x03, 0x02, "MAMEUIFx Colors (Mid)"},
}; };
STDDIPINFO(Twinbee) STDDIPINFO(Twinbee)
@ -751,7 +751,7 @@ static struct BurnDIPInfo GradiusDIPList[]=
{0, 0xfe, 0, 3, "Color Settings" }, {0, 0xfe, 0, 3, "Color Settings" },
{0x17, 0x01, 0x03, 0x00, "Proper Colors (Dark)" }, {0x17, 0x01, 0x03, 0x00, "Proper Colors (Dark)" },
{0x17, 0x01, 0x03, 0x01, "Light Colors" }, {0x17, 0x01, 0x03, 0x01, "Light Colors" },
{0x17, 0x01, 0x03, 0x02, "MAMEFx Colors (Mid)" }, {0x17, 0x01, 0x03, 0x02, "MAMEUIFx Colors (Mid)"},
}; };
STDDIPINFO(Gradius) STDDIPINFO(Gradius)
@ -836,7 +836,7 @@ static struct BurnDIPInfo GwarriorDIPList[]=
{0, 0xfe, 0, 3, "Color Settings" }, {0, 0xfe, 0, 3, "Color Settings" },
{0x17, 0x01, 0x03, 0x00, "Proper Colors (Dark)" }, {0x17, 0x01, 0x03, 0x00, "Proper Colors (Dark)" },
{0x17, 0x01, 0x03, 0x01, "Light Colors" }, {0x17, 0x01, 0x03, 0x01, "Light Colors" },
{0x17, 0x01, 0x03, 0x02, "MAMEFx Colors (Mid)" }, {0x17, 0x01, 0x03, 0x02, "MAMEUIFx Colors (Mid)"},
}; };
STDDIPINFO(Gwarrior) STDDIPINFO(Gwarrior)
@ -1140,7 +1140,7 @@ static struct BurnDIPInfo KonamigtDIPList[]=
{0, 0xfe, 0, 3, "Color Settings" }, {0, 0xfe, 0, 3, "Color Settings" },
{0x0a, 0x01, 0x03, 0x00, "Proper Colors (Dark)" }, {0x0a, 0x01, 0x03, 0x00, "Proper Colors (Dark)" },
{0x0a, 0x01, 0x03, 0x01, "Light Colors" }, {0x0a, 0x01, 0x03, 0x01, "Light Colors" },
{0x17, 0x01, 0x03, 0x02, "MAMEFx Colors (Mid)" }, {0x17, 0x01, 0x03, 0x02, "MAMEUIFx Colors (Mid)"},
}; };
STDDIPINFO(Konamigt) STDDIPINFO(Konamigt)
@ -1991,7 +1991,7 @@ static void nemesis_palette_update(INT32 i)
0x00, 0x08, 0x11, 0x19, 0x21, 0x29, 0x32, 0x3a, 0x40, 0x48, 0x51, 0x59, 0x61, 0x69, 0x72, 0x7a, 0x00, 0x08, 0x11, 0x19, 0x21, 0x29, 0x32, 0x3a, 0x40, 0x48, 0x51, 0x59, 0x61, 0x69, 0x72, 0x7a,
0x85, 0x8d, 0x96, 0x9e, 0xa6, 0xae, 0xb7, 0xbf, 0xc5, 0xcd, 0xd6, 0xde, 0xe6, 0xee, 0xf7, 0xff 0x85, 0x8d, 0x96, 0x9e, 0xa6, 0xae, 0xb7, 0xbf, 0xc5, 0xcd, 0xd6, 0xde, 0xe6, 0xee, 0xf7, 0xff
}, },
{ // MAMEFX colors (mid) { // MAMEUIFX colors (mid)
0x00, 0x00, 0x01, 0x02, 0x04, 0x06, 0x09, 0x0d, 0x10, 0x14, 0x19, 0x1f, 0x24, 0x2b, 0x32, 0x3a, 0x00, 0x00, 0x01, 0x02, 0x04, 0x06, 0x09, 0x0d, 0x10, 0x14, 0x19, 0x1f, 0x24, 0x2b, 0x32, 0x3a,
0x45, 0x4d, 0x58, 0x61, 0x6c, 0x76, 0x83, 0x8f, 0x98, 0xa4, 0xb3, 0xc1, 0xcf, 0xde, 0xef, 0xff 0x45, 0x4d, 0x58, 0x61, 0x6c, 0x76, 0x83, 0x8f, 0x98, 0xa4, 0xb3, 0xc1, 0xcf, 0xde, 0xef, 0xff
} }

View File

@ -2358,6 +2358,17 @@ static INT32 BlswhstlDoReset()
static INT32 SsridersDoReset() static INT32 SsridersDoReset()
{ {
static const UINT8 thndrx2_eeprom_data[128] = { // Enable stereo sound (Dink)
0x00, 0x00, 0x40, 0xC0, 0x80, 0x20, 0x00, 0x0E, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF
};
SekOpen(0); SekOpen(0);
SekReset(); SekReset();
SekClose(); SekClose();
@ -2376,9 +2387,13 @@ static INT32 SsridersDoReset()
if (EEPROMAvailable()) { if (EEPROMAvailable()) {
InitEEPROMCount = 0; InitEEPROMCount = 0;
} else { } else {
InitEEPROMCount = 10; if (strncmp(BurnDrvGetTextA(DRV_NAME), "thndrx2", 7) == 0) {
EEPROMFill(thndrx2_eeprom_data, 0, 128);
} else {
InitEEPROMCount = 10;
}
} }
K052109_irq_enabled = 0; K052109_irq_enabled = 0;
DrvVBlank = 0; DrvVBlank = 0;