mirror of
https://github.com/holub/mame
synced 2025-04-23 08:49:55 +03:00
(MESS) sms.c: Fixed lphaser regression. [Enik Land]
This commit is contained in:
parent
7dbc5d190f
commit
eb9a3ddc70
@ -246,27 +246,27 @@ void sega8_cart_slot_device::set_lphaser_xoffset( UINT8 *rom, int size )
|
||||
{ 0x54, 0x4d, 0x52, 0x20, 0x53, 0x45, 0x47, 0x41, 0x41, 0x4c, 0x15, 0x4a, 0x01, 0x80, 0x00, 0x4f }
|
||||
};
|
||||
|
||||
int xoff = 44;
|
||||
int xoff = 36;
|
||||
|
||||
if (size >= 0x8000)
|
||||
{
|
||||
if (!memcmp(&rom[0x7ff0], signatures[0], 16) || !memcmp(&rom[0x7ff0], signatures[1], 16))
|
||||
xoff = 34;
|
||||
xoff = 26;
|
||||
|
||||
if (!memcmp(&rom[0x7ff0], signatures[2], 16))
|
||||
xoff = 44;
|
||||
xoff = 36;
|
||||
|
||||
if (!memcmp(&rom[0x7ff0], signatures[3], 16))
|
||||
xoff = 40;
|
||||
xoff = 32;
|
||||
|
||||
if (!memcmp(&rom[0x7ff0], signatures[4], 16))
|
||||
xoff = 38;
|
||||
xoff = 30;
|
||||
|
||||
if (!memcmp(&rom[0x7ff0], signatures[5], 16))
|
||||
xoff = 47;
|
||||
xoff = 39;
|
||||
|
||||
if (!memcmp(&rom[0x7ff0], signatures[6], 16))
|
||||
xoff = 46;
|
||||
xoff = 38;
|
||||
}
|
||||
|
||||
m_cart->set_lphaser_xoffs(xoff);
|
||||
|
@ -709,7 +709,7 @@ void sms_state::setup_media_slots()
|
||||
// Set offset for Light Phaser
|
||||
if (!m_is_mark_iii)
|
||||
{
|
||||
m_lphaser_x_offs = 44;
|
||||
m_lphaser_x_offs = 36;
|
||||
|
||||
if (m_mem_device_enabled & ENABLE_CART)
|
||||
m_lphaser_x_offs = m_cartslot->m_cart->get_lphaser_xoffs();
|
||||
|
Loading…
Reference in New Issue
Block a user