summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/homedata.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2019-11-01 00:47:41 +1100
committer Vas Crabb <vas@vastheman.com>2019-11-01 00:47:41 +1100
commit6f4c1f6e5b2525ac8b700b3a0754f5e99c4223e1 (patch)
tree4b0e0ac5cf1c3a7fd518a7d8f4d12f39291b2629 /src/mame/drivers/homedata.cpp
parent0be348c7fbc8c0478f724ba098dabeb9eb3aab8c (diff)
Spring cleaning:
* Changed emu_fatalerror to use util::string_format semantics * Fixed some incorrectly marked up stuff in build scripts * Make internal layout compression type a scoped enum (only zlib is supported still, but at least the values aren't magic numbers now) * Fixed memory leaks in Xbox USB * There can only be one "perfect quantum" device - enforce that only the root machine can set it, as allowing subdevices to will cause weird issues with slot cards overiding it * Allow multiple devices to set maximum quantum and use the most restrictive one (it's maximum quantum, it would be minimum interleave) * Got rid of device_slot_card_interface as it wasn't providing value * Added a helper template to reduce certain kinds of boilerplate in slots/buses * Cleaned up some particularly bad slot code (plenty more of that to do), and made some slots more idiomatic
Diffstat (limited to 'src/mame/drivers/homedata.cpp')
-rw-r--r--src/mame/drivers/homedata.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/homedata.cpp b/src/mame/drivers/homedata.cpp
index 1f4c4a9020e..8331cef3813 100644
--- a/src/mame/drivers/homedata.cpp
+++ b/src/mame/drivers/homedata.cpp
@@ -1325,7 +1325,7 @@ void homedata_state::reikaids(machine_config &config)
audiocpu.pc_out_cb().set(FUNC(homedata_state::reikaids_upd7807_portc_w));
audiocpu.pt_in_cb().set(m_soundlatch, FUNC(generic_latch_8_device::read));
- config.m_minimum_quantum = attotime::from_hz(30000); // very high interleave required to sync for startup tests
+ config.set_maximum_quantum(attotime::from_hz(30000)); // very high interleave required to sync for startup tests
MCFG_MACHINE_START_OVERRIDE(homedata_state,reikaids)
MCFG_MACHINE_RESET_OVERRIDE(homedata_state,reikaids)
@@ -1384,7 +1384,7 @@ void homedata_state::pteacher(machine_config &config)
audiocpu.pc_out_cb().set(FUNC(homedata_state::pteacher_upd7807_portc_w));
audiocpu.pt_in_cb().set(FUNC(homedata_state::pteacher_keyboard_r));
- config.m_minimum_quantum = attotime::from_hz(6000); // should be enough
+ config.set_maximum_quantum(attotime::from_hz(6000)); // should be enough
MCFG_MACHINE_START_OVERRIDE(homedata_state,pteacher)
MCFG_MACHINE_RESET_OVERRIDE(homedata_state,pteacher)
@@ -1453,7 +1453,7 @@ void homedata_state::mjikaga(machine_config &config)
m_maincpu->set_addrmap(AS_PROGRAM, &homedata_state::mjikaga_map);
m_audiocpu->set_addrmap(AS_PROGRAM, &homedata_state::mjikaga_upd7807_map);
- config.m_minimum_quantum = attotime::from_hz(9000); // boost synch a bit more, otherwise the game fails to start
+ config.set_maximum_quantum(attotime::from_hz(9000)); // boost synch a bit more, otherwise the game fails to start
}
static INPUT_PORTS_START( mirderby )
@@ -1579,7 +1579,7 @@ void homedata_state::mirderby(machine_config &config)
cpu1.set_disable();
//cpu1.set_vblank_int("screen", FUNC(homedata_state::mirderby_irq));
- config.m_minimum_quantum = attotime::from_hz(6000);
+ config.set_maximum_quantum(attotime::from_hz(6000));
/* video hardware */
screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER));