(MESS) Mac: Support headless operation [R. Belmont]
This commit is contained in:
parent
598d939939
commit
c3fa9bf948
@ -1322,8 +1322,11 @@ READ8_MEMBER(mac_state::mac_via_in_b)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* video beam in display (! VBLANK && ! HBLANK basically) */
|
/* video beam in display (! VBLANK && ! HBLANK basically) */
|
||||||
if (machine().primary_screen->vpos() >= MAC_V_VIS)
|
if (machine().primary_screen)
|
||||||
val |= 0x40;
|
{
|
||||||
|
if (machine().primary_screen->vpos() >= MAC_V_VIS)
|
||||||
|
val |= 0x40;
|
||||||
|
}
|
||||||
|
|
||||||
if (ADB_IS_BITBANG_CLASS)
|
if (ADB_IS_BITBANG_CLASS)
|
||||||
{
|
{
|
||||||
@ -1771,8 +1774,12 @@ void mac_state::machine_start()
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
this->m_scanline_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(mac_state::mac_scanline_tick),this));
|
|
||||||
this->m_scanline_timer->adjust(machine().primary_screen->time_until_pos(0, 0));
|
if (machine().primary_screen)
|
||||||
|
{
|
||||||
|
this->m_scanline_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(mac_state::mac_scanline_tick),this));
|
||||||
|
this->m_scanline_timer->adjust(machine().primary_screen->time_until_pos(0, 0));
|
||||||
|
}
|
||||||
|
|
||||||
m_6015_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(mac_state::mac_6015_tick),this));
|
m_6015_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(mac_state::mac_6015_tick),this));
|
||||||
m_6015_timer->adjust(attotime::never);
|
m_6015_timer->adjust(attotime::never);
|
||||||
|
Loading…
Reference in New Issue
Block a user