Previous 199869 Revisions Next

r29214 Thursday 3rd April, 2014 at 08:56:14 UTC by Miodrag Milanović
Fix listsamples and one other potential problematic place, and fixed better devctrl (nw)
[src/emu]clifront.c
[src/emu/ui]devctrl.h

trunk/src/emu/clifront.c
r29213r29214
148148
149149         machine_config config(*system, m_options);
150150         software_list_device_iterator iter(config.root_device());
151         if (iter.first() == NULL)
151         if (iter.count() == 0)
152152            throw emu_fatalerror(MAMERR_FATALERROR, "Error: unknown option: %s\n", m_options.software_name());
153153
154154         bool found = false;
r29213r29214
550550   {
551551      // see if we have samples
552552      samples_device_iterator iter(drivlist.config().root_device());
553      if (iter.first() == NULL)
553      if (iter.count() == 0)
554554         continue;
555555
556556      // print a header
trunk/src/emu/ui/devctrl.h
r29213r29214
4646   : ui_menu(machine, container)
4747{
4848   iterator iter(machine.root_device());
49   m_count = iter.count();
4950   m_device = device ? device : iter.first();
50   iterator iter_cnt(machine.root_device());
51   m_count = iter_cnt.count();
5251}
5352
5453

Previous 199869 Revisions Next


© 1997-2024 The MAME Team