mirror of
https://github.com/holub/mame
synced 2025-05-29 00:53:09 +03:00
A number of corrections to video, machine or encryption routines tied to the use of 'gamedrv->name' to lookup an individual setname or for use in a table. A more exhaustive search will be done to find more.
This commit is contained in:
parent
1ac9522a97
commit
566b865ccc
@ -501,7 +501,7 @@ static READ16_HANDLER( alpha_II_trigger_r )
|
||||
|
||||
if ((coin_id&0xff) == 0x22)
|
||||
{
|
||||
if(!strcmp(space->machine->gamedrv->name, "btlfildb"))
|
||||
if(!strcmp(space->machine->gamedrv->name, "btlfieldb"))
|
||||
coinvalue = (input_port_read(space->machine, "IN4")>>0) & 7;
|
||||
else
|
||||
coinvalue = (~input_port_read(space->machine, "IN4")>>0) & 7;
|
||||
@ -524,7 +524,7 @@ static READ16_HANDLER( alpha_II_trigger_r )
|
||||
|
||||
if ((coin_id>>8) == 0x22)
|
||||
{
|
||||
if(!strcmp(space->machine->gamedrv->name, "btlfildb"))
|
||||
if(!strcmp(space->machine->gamedrv->name, "btlfieldb"))
|
||||
coinvalue = (input_port_read(space->machine, "IN4")>>0) & 7;
|
||||
else
|
||||
coinvalue = (~input_port_read(space->machine, "IN4")>>0) & 7;
|
||||
|
@ -423,7 +423,7 @@ static MACHINE_START( s2650 )
|
||||
else if (strcmp(game_name,"herodk") == 0) state->protect_type = DK2650_HUNCHBKD;
|
||||
else if (strcmp(game_name,"herodku") == 0) state->protect_type = DK2650_HUNCHBKD;
|
||||
else if (strcmp(game_name,"8ballact") == 0) state->protect_type = DK2650_EIGHTACT;
|
||||
else if (strcmp(game_name,"8ballat2") == 0) state->protect_type = DK2650_EIGHTACT;
|
||||
else if (strcmp(game_name,"8ballact2") == 0) state->protect_type = DK2650_EIGHTACT;
|
||||
else if (strcmp(game_name,"shootgal") == 0) state->protect_type = DK2650_SHOOTGAL;
|
||||
else if (strcmp(game_name,"spclforc") == 0) state->protect_type = DK2650_SPCLFORC;
|
||||
else if (strcmp(game_name,"spcfrcii") == 0) state->protect_type = DK2650_SPCLFORC;
|
||||
|
@ -3423,9 +3423,9 @@ typedef struct
|
||||
static const GXGameInfoT gameDefs[] =
|
||||
{
|
||||
{ "racinfrc", 11, 11, 0, BPP4 },
|
||||
{ "racinfru", 11, 11, 0, BPP4 },
|
||||
{ "racinfrcu",11, 11, 0, BPP4 },
|
||||
{ "opengolf", 11, 12, 0, BPP4 },
|
||||
{ "opengol2", 11, 12, 0, BPP4 },
|
||||
{ "opengolf2",11, 12, 0, BPP4 },
|
||||
{ "ggreats2", 11, 12, 0, BPP4 },
|
||||
{ "le2", 13, 1, 1, BPP4 },
|
||||
{ "le2u", 13, 1, 1, BPP4 },
|
||||
@ -3440,17 +3440,17 @@ static const GXGameInfoT gameDefs[] =
|
||||
{ "daiskiss", 7, 0, 5, BPP5 },
|
||||
{ "tokkae", 7, 0, 0, BPP5 },
|
||||
{ "salmndr2", 7, 0, 6, BPP66 },
|
||||
{ "salmnd2a", 7, 0, 6, BPP66 },
|
||||
{ "salmndr2a", 7, 0, 6, BPP66 },
|
||||
{ "winspike", 8, 2, 7, BPP4 },
|
||||
{ "winspikj", 8, 2, 7, BPP4 },
|
||||
{ "winspikej", 8, 2, 7, BPP4 },
|
||||
{ "soccerss", 7, 0, 0, BPP4 },
|
||||
{ "soccersa", 7, 0, 0, BPP4 },
|
||||
{ "soccersj", 7, 0, 0, BPP4 },
|
||||
{ "soccerssa", 7, 0, 0, BPP4 },
|
||||
{ "soccerssj", 7, 0, 0, BPP4 },
|
||||
{ "vsnetscr", 7, 8, 0, BPP4 },
|
||||
{ "vsnetscu", 7, 5, 0, BPP4 },
|
||||
{ "vsnetscj", 7, 10, 0, BPP4 },
|
||||
{ "vsnetsca", 7, 7, 0, BPP4 },
|
||||
{ "vsnetseb", 7, 9, 0, BPP4 },
|
||||
{ "vsnetscru", 7, 5, 0, BPP4 },
|
||||
{ "vsnetscrj", 7, 10, 0, BPP4 },
|
||||
{ "vsnetscra", 7, 7, 0, BPP4 },
|
||||
{ "vsnetscreb",7, 9, 0, BPP4 },
|
||||
{ "rungun2", 7, 3, 0, BPP4 },
|
||||
{ "slamdnk2", 7, 6, 0, BPP4 },
|
||||
{ "rushhero", 7, 4, 0, BPP4 },
|
||||
|
@ -1180,7 +1180,7 @@ static NVRAM_HANDLER( model3 )
|
||||
const char *name = machine->gamedrv->name;
|
||||
if( mame_stricmp(name, "lostwsga") == 0 ||
|
||||
mame_stricmp(name, "dirtdvls") == 0 ||
|
||||
mame_stricmp(name, "dirtdvla") == 0 ||
|
||||
mame_stricmp(name, "dirtdvlsa") == 0 ||
|
||||
mame_stricmp(name, "lemans24") == 0 ||
|
||||
mame_stricmp(name, "magtruck") == 0 ||
|
||||
mame_stricmp(name, "von2") == 0 ||
|
||||
@ -1751,7 +1751,7 @@ static READ64_HANDLER(model3_security_r)
|
||||
return (UINT64)vs299_prot_data[prot_data_ptr++] << 48;
|
||||
}
|
||||
else if (mame_stricmp(space->machine->gamedrv->name, "swtrilgy") == 0 ||
|
||||
mame_stricmp(space->machine->gamedrv->name, "swtrilga") == 0)
|
||||
mame_stricmp(space->machine->gamedrv->name, "swtrilgya") == 0)
|
||||
{
|
||||
UINT64 data = (UINT64)swt_prot_data[prot_data_ptr++] << 16;
|
||||
if (prot_data_ptr > 0x38)
|
||||
|
@ -1252,7 +1252,7 @@ static MACHINE_RESET( namcos12 )
|
||||
strcmp( machine->gamedrv->name, "pacapp" ) == 0 ||
|
||||
strcmp( machine->gamedrv->name, "pacappsp" ) == 0 ||
|
||||
strcmp( machine->gamedrv->name, "pacapp2" ) == 0 ||
|
||||
strcmp( machine->gamedrv->name, "tenkomoj" ) == 0 ||
|
||||
strcmp( machine->gamedrv->name, "tenkomorj" ) == 0 ||
|
||||
strcmp( machine->gamedrv->name, "tenkomor" ) == 0 ||
|
||||
strcmp( machine->gamedrv->name, "ptblank2" ) == 0 ||
|
||||
strcmp( machine->gamedrv->name, "sws2000" ) == 0 ||
|
||||
|
@ -669,7 +669,7 @@ static DRIVER_INIT( coh1000c )
|
||||
zn_driver_init(machine);
|
||||
|
||||
if( strcmp( machine->gamedrv->name, "glpracr" ) == 0 ||
|
||||
strcmp( machine->gamedrv->name, "glprac2l" ) == 0 )
|
||||
strcmp( machine->gamedrv->name, "glpracr2l" ) == 0 )
|
||||
{
|
||||
/* disable:
|
||||
the QSound CPU for glpracr as it doesn't have any roms &
|
||||
|
@ -773,7 +773,7 @@ static const struct game_keys keys_table[] =
|
||||
{ "ecofghtru",{ 0x931031ed,0xcba98765 }, 0x200000 }, // 0838 0003 7345 btst #3,$7345
|
||||
{ "ecofghtru1",{ 0x931031ed,0xcba98765 }, 0x200000 }, // 0838 0003 7345 btst #3,$7345
|
||||
{ "uecology", { 0x931031fe,0xdcba9876 }, 0x200000 }, // 0838 0003 7345 btst #3,$7345
|
||||
{ "ecofghta", { 0x931031ba,0x98765432 }, 0x200000 }, // 0838 0003 7345 btst #3,$7345
|
||||
{ "ecofghtra",{ 0x931031ba,0x98765432 }, 0x200000 }, // 0838 0003 7345 btst #3,$7345
|
||||
{ "ssf2t", { 0x944e8302,0x56d3143c }, 0x400000 }, // 0838 0007 2000 btst #7,$2000
|
||||
{ "ssf2ta", { 0x94c4d002,0x664a1471 }, 0x400000 }, // 0838 0007 2000 btst #7,$2000
|
||||
{ "ssf2tu", { 0x94fa8902,0x4c77143f }, 0x400000 }, // 0838 0007 2000 btst #7,$2000
|
||||
|
@ -557,7 +557,7 @@ static void set_default_key_params(running_machine *machine)
|
||||
UINT32 seed;
|
||||
} default_keys[] =
|
||||
{
|
||||
{ "altbeaj1", 0xFCAFF9F9, 0x177AC6 },
|
||||
{ "altbeastj1", 0xFCAFF9F9, 0x177AC6 },
|
||||
{ "bullet", 0x12A8F9EC, 0x1B1FC3 },
|
||||
};
|
||||
int keynum;
|
||||
|
@ -1242,7 +1242,7 @@ static const struct CPS1config cps1_config_table[]=
|
||||
{"daimakai", CPS_B_01, mapper_DM22A }, // equivalent to DM620
|
||||
{"daimakair",CPS_B_21_DEF, mapper_DAM63B }, // equivalent to DM620, also CPS_B_21_DEF is equivalent to CPS_B_01
|
||||
{"strider", CPS_B_01, mapper_ST24M1 },
|
||||
{"stridrua", CPS_B_01, mapper_ST24M1 },
|
||||
{"striderua",CPS_B_01, mapper_ST24M1 },
|
||||
{"striderj", CPS_B_01, mapper_ST22B }, // equivalent to ST24M1
|
||||
{"striderjr",CPS_B_01, mapper_ST24M1 },
|
||||
{"dynwar", CPS_B_02, mapper_TK22B },
|
||||
|
@ -329,7 +329,7 @@ VIDEO_START(konamigx_6bpp_2)
|
||||
{
|
||||
K056832_vh_start(machine, "gfx1", K056832_BPP_6, 1, NULL, konamigx_type2_tile_callback, 0);
|
||||
|
||||
if (!strcmp(machine->gamedrv->name,"salmndr2") || !strcmp(machine->gamedrv->name,"salmnd2a"))
|
||||
if (!strcmp(machine->gamedrv->name,"salmndr2") || !strcmp(machine->gamedrv->name,"salmndr2a"))
|
||||
{
|
||||
K055673_vh_start(machine, "gfx2", K055673_LAYOUT_GX6, -48, -23, konamigx_salmndr2_sprite_callback);
|
||||
|
||||
|
@ -55,7 +55,7 @@ VIDEO_START(lethalen)
|
||||
K056832_SetExtLinescroll();
|
||||
|
||||
// the US and Japanese cabinets apparently use different mirror setups
|
||||
if (!strcmp(machine->gamedrv->name, "lethalej"))
|
||||
if (!strcmp(machine->gamedrv->name, "lethalenj"))
|
||||
{
|
||||
K056832_set_LayerOffset(0, -196, 0);
|
||||
K056832_set_LayerOffset(1, -194, 0);
|
||||
|
@ -553,7 +553,7 @@ VIDEO_START( truxton2_0 )
|
||||
if (machine->gfx[2]->srcdata == NULL)
|
||||
gfx_element_set_source(machine->gfx[2], (UINT8 *)toaplan2_tx_gfxram16);
|
||||
|
||||
if(!strcmp(machine->gamedrv->name,"fixeighb"))
|
||||
if(!strcmp(machine->gamedrv->name,"fixeightb"))
|
||||
{
|
||||
xoffset[0]=-26;
|
||||
xoffset[1]=-22;
|
||||
|
Loading…
Reference in New Issue
Block a user