mirror of
https://github.com/holub/mame
synced 2025-06-06 21:03:47 +03:00
sega/sg1000.cpp: SG-1000 only has one control port; prevent Othello Multivisions from segfaulting. (#10694)
This commit is contained in:
parent
e3f3949d97
commit
00d49e7b00
@ -566,8 +566,10 @@ void sg1000_state::machine_start()
|
||||
if (m_cart)
|
||||
m_cart->save_ram();
|
||||
|
||||
m_ctrlports[0]->out_w(0x3f, 0x40);
|
||||
m_ctrlports[1]->out_w(0x3f, 0x40);
|
||||
if (m_ctrlports[0])
|
||||
m_ctrlports[0]->out_w(0x3f, 0x40);
|
||||
if (m_ctrlports[1])
|
||||
m_ctrlports[1]->out_w(0x3f, 0x40);
|
||||
}
|
||||
|
||||
/*-------------------------------------------------
|
||||
@ -666,7 +668,7 @@ void sg1000_state::sg1000(machine_config &config)
|
||||
m_maincpu->set_addrmap(AS_IO, &sg1000_state::sg1000_io_map);
|
||||
|
||||
/* controller ports */
|
||||
SMS_CONTROL_PORT(config, m_ctrlports[0], sms_control_port_passive_devices, SMS_CTRL_OPTION_JOYPAD);
|
||||
SMS_CONTROL_PORT(config, m_ctrlports[0], sms_control_port_passive_devices, SMS_CTRL_OPTION_JOYPAD).set_fixed(true);
|
||||
SMS_CONTROL_PORT(config, m_ctrlports[1], sms_control_port_passive_devices, SMS_CTRL_OPTION_JOYPAD);
|
||||
|
||||
/* expansion slot */
|
||||
|
Loading…
Reference in New Issue
Block a user