mirror of
https://github.com/akuker/RASCSI.git
synced 2025-07-18 20:24:22 +00:00
Web UI and OLED: adding Support Devices (#666)
* Use the comparison operator that Python3 likes. * Add SUPPORT_DEVICE_TYPES category, and add Host Service to it. * Add webapp UI for attaching a support device. * Make the OLED screen aware of the support device type. * Tweak test to make it clear that this is experimental functionality. * Tweak device type names
This commit is contained in:
@@ -59,20 +59,22 @@ def extend_device_names(device_types):
|
||||
"""
|
||||
mapped_device_types = {}
|
||||
for device_type in device_types:
|
||||
if device_type is "SAHD":
|
||||
device_name = _("SASI Hard Drive")
|
||||
elif device_type is "SCHD":
|
||||
device_name = _("SCSI Hard Drive")
|
||||
elif device_type is "SCRM":
|
||||
device_name = _("Removable Drive")
|
||||
elif device_type is "SCMO":
|
||||
device_name = _("Magneto-Optical Drive")
|
||||
elif device_type is "SCCD":
|
||||
device_name = _("CD-ROM Drive")
|
||||
elif device_type is "SCBR":
|
||||
if device_type == "SAHD":
|
||||
device_name = _("SASI Hard Disk")
|
||||
elif device_type == "SCHD":
|
||||
device_name = _("SCSI Hard Disk")
|
||||
elif device_type == "SCRM":
|
||||
device_name = _("Removable Disk")
|
||||
elif device_type == "SCMO":
|
||||
device_name = _("Magneto-Optical")
|
||||
elif device_type == "SCCD":
|
||||
device_name = _("CD-ROM / DVD")
|
||||
elif device_type == "SCBR":
|
||||
device_name = _("X68000 Host Bridge")
|
||||
elif device_type is "SCDP":
|
||||
elif device_type == "SCDP":
|
||||
device_name = _("DaynaPORT SCSI/Link")
|
||||
elif device_type == "SCHS":
|
||||
device_name = _("Host Service")
|
||||
else:
|
||||
device_name = _("Unknown Device")
|
||||
mapped_device_types[device_type] = device_name
|
||||
|
Reference in New Issue
Block a user