Ejemplo n.º 1
0
Archivo: gb.cpp Proyecto: RalfVB/mame
MACHINE_START_MEMBER(gb_state,sgb)
{
    m_sgb_packets = -1;

    save_gb_base();
    save_sgb_only();

    if (m_cartslot && m_cartslot->get_sgb_hack()) {
        dynamic_cast<sgb_ppu_device*>(m_ppu.target())->set_sgb_hack(TRUE);
    }
}
Ejemplo n.º 2
0
MACHINE_START_MEMBER(gb_state,sgb)
{
	m_sgb_packets = -1;

	/* Allocate the serial timer, and disable it */
	m_gb_serial_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(gb_state::gb_serial_timer_proc),this));
	m_gb_serial_timer->enable( 0 );

	save_gb_base();
	save_sgb_only();

	if (m_cartslot && m_cartslot->get_sgb_hack())
		machine().device<sgb_lcd_device>("lcd")->set_sgb_hack(TRUE);
}