mirror of
https://github.com/holub/mame
synced 2025-05-19 20:29:09 +03:00
fix for MT3818 by AWJ
This commit is contained in:
parent
8d8848a52e
commit
264e715bbb
@ -1275,8 +1275,10 @@ static DEVICE_START( ppu2c0x )
|
|||||||
memset(ppu2c0x, 0, sizeof(*ppu2c0x));
|
memset(ppu2c0x, 0, sizeof(*ppu2c0x));
|
||||||
ppu2c0x->scanlines_per_frame = (int) device->get_config_int(PPU2C0XINFO_INT_SCANLINES_PER_FRAME);
|
ppu2c0x->scanlines_per_frame = (int) device->get_config_int(PPU2C0XINFO_INT_SCANLINES_PER_FRAME);
|
||||||
|
|
||||||
|
/* usually, no security value... */
|
||||||
ppu2c0x->security_value = 0;
|
ppu2c0x->security_value = 0;
|
||||||
|
|
||||||
|
/* ...except for VS. games which specific PPU types */
|
||||||
if (device->type == PPU_2C05_01)
|
if (device->type == PPU_2C05_01)
|
||||||
ppu2c0x->security_value = 0x1b; // game (jajamaru) doesn't seem to ever actually check it
|
ppu2c0x->security_value = 0x1b; // game (jajamaru) doesn't seem to ever actually check it
|
||||||
|
|
||||||
@ -1443,7 +1445,7 @@ DEVICE_GET_INFO(ppu2c04)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
DEVICE_GET_INFO(ppu2c05)
|
DEVICE_GET_INFO(ppu2c05_01)
|
||||||
{
|
{
|
||||||
switch (state)
|
switch (state)
|
||||||
{
|
{
|
||||||
@ -1453,6 +1455,21 @@ DEVICE_GET_INFO(ppu2c05)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DEVICE_GET_INFO(ppu2c05_02)
|
||||||
|
{
|
||||||
|
DEVICE_GET_INFO_CALL(ppu2c05_01);
|
||||||
|
}
|
||||||
|
|
||||||
|
DEVICE_GET_INFO(ppu2c05_03)
|
||||||
|
{
|
||||||
|
DEVICE_GET_INFO_CALL(ppu2c05_01);
|
||||||
|
}
|
||||||
|
|
||||||
|
DEVICE_GET_INFO(ppu2c05_04)
|
||||||
|
{
|
||||||
|
DEVICE_GET_INFO_CALL(ppu2c05_01);
|
||||||
|
}
|
||||||
|
|
||||||
DEVICE_GET_INFO(ppu2c07)
|
DEVICE_GET_INFO(ppu2c07)
|
||||||
{
|
{
|
||||||
switch (state)
|
switch (state)
|
||||||
|
@ -76,10 +76,10 @@ enum
|
|||||||
#define PPU_2C03B DEVICE_GET_INFO_NAME(ppu2c03b) // Vs. Unisystem, Playchoice 10
|
#define PPU_2C03B DEVICE_GET_INFO_NAME(ppu2c03b) // Vs. Unisystem, Playchoice 10
|
||||||
#define PPU_2C04 DEVICE_GET_INFO_NAME(ppu2c04) // Vs. Unisystem (four versions with different colors)
|
#define PPU_2C04 DEVICE_GET_INFO_NAME(ppu2c04) // Vs. Unisystem (four versions with different colors)
|
||||||
/* The PPU_2C05 variants have different protection value, set at DEVICE_START, but otherwise are all the same... */
|
/* The PPU_2C05 variants have different protection value, set at DEVICE_START, but otherwise are all the same... */
|
||||||
#define PPU_2C05_01 DEVICE_GET_INFO_NAME(ppu2c05) // Vs. Unisystem (Ninja Jajamaru Kun)
|
#define PPU_2C05_01 DEVICE_GET_INFO_NAME(ppu2c05_01) // Vs. Unisystem (Ninja Jajamaru Kun)
|
||||||
#define PPU_2C05_02 DEVICE_GET_INFO_NAME(ppu2c05) // Vs. Unisystem (Mighty Bomb Jack)
|
#define PPU_2C05_02 DEVICE_GET_INFO_NAME(ppu2c05_02) // Vs. Unisystem (Mighty Bomb Jack)
|
||||||
#define PPU_2C05_03 DEVICE_GET_INFO_NAME(ppu2c05) // Vs. Unisystem (Gumshoe)
|
#define PPU_2C05_03 DEVICE_GET_INFO_NAME(ppu2c05_03) // Vs. Unisystem (Gumshoe)
|
||||||
#define PPU_2C05_04 DEVICE_GET_INFO_NAME(ppu2c05) // Vs. Unisystem (Top Gun)
|
#define PPU_2C05_04 DEVICE_GET_INFO_NAME(ppu2c05_04) // Vs. Unisystem (Top Gun)
|
||||||
#define PPU_2C07 DEVICE_GET_INFO_NAME(ppu2c07) // PAL NES
|
#define PPU_2C07 DEVICE_GET_INFO_NAME(ppu2c07) // PAL NES
|
||||||
|
|
||||||
/* callback datatypes */
|
/* callback datatypes */
|
||||||
@ -105,7 +105,10 @@ struct _ppu2c0x_interface
|
|||||||
DEVICE_GET_INFO(ppu2c02);
|
DEVICE_GET_INFO(ppu2c02);
|
||||||
DEVICE_GET_INFO(ppu2c03b);
|
DEVICE_GET_INFO(ppu2c03b);
|
||||||
DEVICE_GET_INFO(ppu2c04);
|
DEVICE_GET_INFO(ppu2c04);
|
||||||
DEVICE_GET_INFO(ppu2c05);
|
DEVICE_GET_INFO(ppu2c05_01);
|
||||||
|
DEVICE_GET_INFO(ppu2c05_02);
|
||||||
|
DEVICE_GET_INFO(ppu2c05_03);
|
||||||
|
DEVICE_GET_INFO(ppu2c05_04);
|
||||||
DEVICE_GET_INFO(ppu2c07);
|
DEVICE_GET_INFO(ppu2c07);
|
||||||
|
|
||||||
/* routines */
|
/* routines */
|
||||||
|
Loading…
Reference in New Issue
Block a user