(MESS) sms.c: Fixed lphaser regression. [Enik Land]

This commit is contained in:
Wilbert Pol 2014-09-08 18:36:12 +00:00
parent 7dbc5d190f
commit eb9a3ddc70
2 changed files with 8 additions and 8 deletions

View File

@ -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 } { 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 (size >= 0x8000)
{ {
if (!memcmp(&rom[0x7ff0], signatures[0], 16) || !memcmp(&rom[0x7ff0], signatures[1], 16)) if (!memcmp(&rom[0x7ff0], signatures[0], 16) || !memcmp(&rom[0x7ff0], signatures[1], 16))
xoff = 34; xoff = 26;
if (!memcmp(&rom[0x7ff0], signatures[2], 16)) if (!memcmp(&rom[0x7ff0], signatures[2], 16))
xoff = 44; xoff = 36;
if (!memcmp(&rom[0x7ff0], signatures[3], 16)) if (!memcmp(&rom[0x7ff0], signatures[3], 16))
xoff = 40; xoff = 32;
if (!memcmp(&rom[0x7ff0], signatures[4], 16)) if (!memcmp(&rom[0x7ff0], signatures[4], 16))
xoff = 38; xoff = 30;
if (!memcmp(&rom[0x7ff0], signatures[5], 16)) if (!memcmp(&rom[0x7ff0], signatures[5], 16))
xoff = 47; xoff = 39;
if (!memcmp(&rom[0x7ff0], signatures[6], 16)) if (!memcmp(&rom[0x7ff0], signatures[6], 16))
xoff = 46; xoff = 38;
} }
m_cart->set_lphaser_xoffs(xoff); m_cart->set_lphaser_xoffs(xoff);

View File

@ -709,7 +709,7 @@ void sms_state::setup_media_slots()
// Set offset for Light Phaser // Set offset for Light Phaser
if (!m_is_mark_iii) if (!m_is_mark_iii)
{ {
m_lphaser_x_offs = 44; m_lphaser_x_offs = 36;
if (m_mem_device_enabled & ENABLE_CART) if (m_mem_device_enabled & ENABLE_CART)
m_lphaser_x_offs = m_cartslot->m_cart->get_lphaser_xoffs(); m_lphaser_x_offs = m_cartslot->m_cart->get_lphaser_xoffs();