Fix compile
This commit is contained in:
parent
665efb1a62
commit
a293f45078
@ -295,33 +295,33 @@ static WRITE32_HANDLER ( skns_hit2_w )
|
|||||||
{
|
{
|
||||||
skns_state *state = space->machine().driver_data<skns_state>();
|
skns_state *state = space->machine().driver_data<skns_state>();
|
||||||
hit_t &hit = state->m_hit;
|
hit_t &hit = state->m_hit;
|
||||||
|
|
||||||
// Decide to unlock on country char of string "FOR xxxxx" in Bios ROM at offset 0x420
|
// Decide to unlock on country char of string "FOR xxxxx" in Bios ROM at offset 0x420
|
||||||
// this code simulates behaviour of protection PLD
|
// this code simulates behaviour of protection PLD
|
||||||
data>>= 24;
|
data>>= 24;
|
||||||
hit.disconnect = 1;
|
hit.disconnect = 1;
|
||||||
switch (state->region)
|
switch (state->region)
|
||||||
{
|
{
|
||||||
case 'J':
|
case 'J':
|
||||||
if (data == 0) hit.disconnect= 0;
|
if (data == 0) hit.disconnect= 0;
|
||||||
break;
|
break;
|
||||||
case 'U':
|
case 'U':
|
||||||
if (data == 1) hit.disconnect= 0;
|
if (data == 1) hit.disconnect= 0;
|
||||||
break;
|
break;
|
||||||
case 'K':
|
case 'K':
|
||||||
if (data == 2) hit.disconnect= 0;
|
if (data == 2) hit.disconnect= 0;
|
||||||
break;
|
break;
|
||||||
case 'E':
|
case 'E':
|
||||||
if (data == 3) hit.disconnect= 0;
|
if (data == 3) hit.disconnect= 0;
|
||||||
break;
|
break;
|
||||||
case 'A':
|
case 'A':
|
||||||
if (data < 2) hit.disconnect= 0;
|
if (data < 2) hit.disconnect= 0;
|
||||||
break;
|
break;
|
||||||
// unknow country id, unlock per default
|
// unknow country id, unlock per default
|
||||||
default:
|
default:
|
||||||
hit.disconnect= 0;
|
hit.disconnect= 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -425,17 +425,15 @@ static TIMER_DEVICE_CALLBACK( interrupt_callback )
|
|||||||
}
|
}
|
||||||
|
|
||||||
static MACHINE_RESET(skns)
|
static MACHINE_RESET(skns)
|
||||||
{
|
{
|
||||||
skns_state *state = machine.driver_data<skns_state>();
|
skns_state *state = machine.driver_data<skns_state>();
|
||||||
hit_t &hit = state->m_hit;
|
hit_t &hit = state->m_hit;
|
||||||
|
|
||||||
if (state->region != 'A')
|
if (state->region != 'A')
|
||||||
{
|
hit.disconnect= 1;
|
||||||
hit.disconnect= 1;
|
else
|
||||||
} else
|
|
||||||
{
|
|
||||||
hit.disconnect= 0;
|
hit.disconnect= 0;
|
||||||
}
|
|
||||||
memory_set_bankptr(machine, "bank1",machine.region("user1")->base());
|
memory_set_bankptr(machine, "bank1",machine.region("user1")->base());
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -858,35 +856,35 @@ static MACHINE_CONFIG_START( skns, skns_state )
|
|||||||
MACHINE_CONFIG_END
|
MACHINE_CONFIG_END
|
||||||
|
|
||||||
static MACHINE_RESET(sknsa)
|
static MACHINE_RESET(sknsa)
|
||||||
{
|
{
|
||||||
skns_state *state = machine.driver_data<skns_state>();
|
skns_state *state = machine.driver_data<skns_state>();
|
||||||
state->region = 'A';
|
state->region = 'A';
|
||||||
MACHINE_RESET_CALL(skns);
|
MACHINE_RESET_CALL(skns);
|
||||||
}
|
}
|
||||||
|
|
||||||
static MACHINE_RESET(sknsj)
|
static MACHINE_RESET(sknsj)
|
||||||
{
|
{
|
||||||
skns_state *state = machine.driver_data<skns_state>();
|
skns_state *state = machine.driver_data<skns_state>();
|
||||||
state->region = 'J';
|
state->region = 'J';
|
||||||
MACHINE_RESET_CALL(skns);
|
MACHINE_RESET_CALL(skns);
|
||||||
}
|
}
|
||||||
|
|
||||||
static MACHINE_RESET(sknsu)
|
static MACHINE_RESET(sknsu)
|
||||||
{
|
{
|
||||||
skns_state *state = machine.driver_data<skns_state>();
|
skns_state *state = machine.driver_data<skns_state>();
|
||||||
state->region = 'U';
|
state->region = 'U';
|
||||||
MACHINE_RESET_CALL(skns);
|
MACHINE_RESET_CALL(skns);
|
||||||
}
|
}
|
||||||
|
|
||||||
static MACHINE_RESET(sknse)
|
static MACHINE_RESET(sknse)
|
||||||
{
|
{
|
||||||
skns_state *state = machine.driver_data<skns_state>();
|
skns_state *state = machine.driver_data<skns_state>();
|
||||||
state->region = 'E';
|
state->region = 'E';
|
||||||
MACHINE_RESET_CALL(skns);
|
MACHINE_RESET_CALL(skns);
|
||||||
}
|
}
|
||||||
|
|
||||||
static MACHINE_RESET(sknsk)
|
static MACHINE_RESET(sknsk)
|
||||||
{
|
{
|
||||||
skns_state *state = machine.driver_data<skns_state>();
|
skns_state *state = machine.driver_data<skns_state>();
|
||||||
state->region = 'K';
|
state->region = 'K';
|
||||||
MACHINE_RESET_CALL(skns);
|
MACHINE_RESET_CALL(skns);
|
||||||
|
@ -61,6 +61,8 @@ public:
|
|||||||
int m_alt_enable_sprites;
|
int m_alt_enable_sprites;
|
||||||
tilemap_t *m_tilemap_A;
|
tilemap_t *m_tilemap_A;
|
||||||
tilemap_t *m_tilemap_B;
|
tilemap_t *m_tilemap_B;
|
||||||
|
|
||||||
|
UINT8 region;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user