diff options
Diffstat (limited to 'src/emu/schedule.c')
-rw-r--r-- | src/emu/schedule.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/schedule.c b/src/emu/schedule.c index d777f1d1b41..1695936fa26 100644 --- a/src/emu/schedule.c +++ b/src/emu/schedule.c @@ -239,7 +239,7 @@ void emu_timer::register_save() { // determine our instance number and name int index = 0; - astring name; + std::string name; // for non-device timers, it is an index based on the callback function name if (m_device == NULL) @@ -253,7 +253,7 @@ void emu_timer::register_save() // for device timers, it is an index based on the device and timer ID else { - name.printf("%s/%d", m_device->tag(), m_id); + strprintf(name,"%s/%d", m_device->tag(), m_id); for (emu_timer *curtimer = machine().scheduler().first_timer(); curtimer != NULL; curtimer = curtimer->next()) if (!curtimer->m_temporary && curtimer->m_device != NULL && curtimer->m_device == m_device && curtimer->m_id == m_id) index++; @@ -753,7 +753,7 @@ void device_scheduler::rebuild_execute_list() min_quantum = attotime::from_hz(60); // if the configuration specifies a device to make perfect, pick that as the minimum - if (machine().config().m_perfect_cpu_quantum) + if (!machine().config().m_perfect_cpu_quantum.empty()) { device_t *device = machine().device(machine().config().m_perfect_cpu_quantum.c_str()); if (device == NULL) |