summaryrefslogtreecommitdiffstatshomepage
path: root/plugins/gdbstub/init.lua
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2017-07-27 09:56:53 +1000
committer Vas Crabb <vas@vastheman.com>2017-07-27 09:56:53 +1000
commit22d80b35290491e041122708b0482826ba3a89c9 (patch)
treef9b39d9aa70ab6573c2f5559b6ef06be27512e51 /plugins/gdbstub/init.lua
parent6cf16fde31232e3081a7ec2d2db9bcece9f8b95d (diff)
Move unemulated/imperfect flags from machines into devices.
Right now, flags for unemulated/imperfect features apply at system level. This falls over quickly with systems that have slot devices. For example you can plug in a broken sound card or keyboard on a PC or Amiga driver and get no warnings. There's also no way to propagate these flags from a device to all systems using it. This changeset addresses these issues. It's now possible to report unemulated/imperfect features on a device level with static unemulated_feeatures() and imperfect_features() member functions. So far the only thing using this is the votrax device. To support front-ends, this is exposed in -listxml output as a new "feature" element that can appear in system/device descriptions. It has a "type" attribute indicating which feature it is, potentially a "status" attribute if the device itself declares that the feature is unemulated/imperfect, and potentially an "overall" attribute if the device inherits a more severe indication from a subdevice. The embedded DTD describes possible values. Example: device/machine declares imperfect sound: <feature type="sound" status="imperfect"/> Example: device/machine declares unemulated keyboard: <feature type="keyboard" status="unemulated"/> Example: device declares imperfect controls but inherits unemulated controls from a subdevice: <feature type="controls" status="imperfect" overall="unemulated"/> Example: device doesn't declare imperfect LAN but inherits it from a subdevice: <feature type="lan" overall="imperfect"/> It's still possible to add these flags to machines in the GAME/COMP/CONS macro. If the state class declares them with static member functions, the two sources will be combined. If you subclass a device, you inherit its flags if you don't redefine the relevant static member functions (no override qualifier is necessary since they're static). The UI has been updated to display appropriate warnings for the overall machine configuration, including selected slot devices, at launch time. The menus don't display overall status, only status for the machine itself. We can make it scan subdevices if we decide that's desirable, it just needs caching to enure we don't take a huge performance hit.
Diffstat (limited to 'plugins/gdbstub/init.lua')
0 files changed, 0 insertions, 0 deletions