mirror of
https://github.com/mamedev/mame.git
synced 2024-11-16 07:48:32 +01:00
(MESS) Mac: Support headless operation [R. Belmont]
This commit is contained in:
parent
598d939939
commit
c3fa9bf948
1 changed files with 11 additions and 4 deletions
|
@ -1322,8 +1322,11 @@ READ8_MEMBER(mac_state::mac_via_in_b)
|
|||
else
|
||||
{
|
||||
/* video beam in display (! VBLANK && ! HBLANK basically) */
|
||||
if (machine().primary_screen->vpos() >= MAC_V_VIS)
|
||||
val |= 0x40;
|
||||
if (machine().primary_screen)
|
||||
{
|
||||
if (machine().primary_screen->vpos() >= MAC_V_VIS)
|
||||
val |= 0x40;
|
||||
}
|
||||
|
||||
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->adjust(attotime::never);
|
||||
|
|
Loading…
Reference in a new issue