Previous 15994 Revisions Next

r14580 Wednesday 22nd February, 2012 at 22:50:44 UTC by Fabio Priuli
info.c: several fixes and additions to listxml output [Fabio Priuli]
- appended to xml info about devices which can be optionally mounted to slots
- added a description attribute to slotoption to show which devices can be mounted
in each slot
- added to xml info of cpus/inputs/image/slots which are relative to devices (e.g. CPUs
or Dipswitches in the device itself)
- tags of elements directly attached to the root_device do not display anymore the
root colon (slot tags were already behaving in this way); elements attached to optional
devices use tags starting with colon (to be interpreted as a relative tags which gets
appended to the device tag, when such a device is selected in a slot)
- modified when necessary output routines to pass a root_device and a root_tag as
parameters, in order to simplify output of relative devices and avoid duplicated code
- updated DTD according to the new elements and attributes
These changes allow frontends to know in advance how drivers can be configured
through the various slot options (by matching option descriptions with device
descriptions), without the need to run -lx with the various slot combinations. This is
especially of use if a device adds e.g. dipswitches or image devices (for instance, additional
floppy drives or additional slot expansions, like in the case of IQ151 whose default
config do not supports disks even if the system has a floppy softlist), but also if one wants
to know e.g. how many sound channels a soundcard would add to a pc driver, or which
kind of screen parameters would be added by a specific choice of video card.
[src/emu]info.c info.h

Previous 15994 Revisions Next


© 1998-2018 The MESS Team