updated handling of apple scsi cd-rom

previously, one of the scsibus devices was hardcoded as a cd-rom and not included in the xml.
This commit is contained in:
Kelvin Sherlock
2026-01-29 19:12:14 -05:00
parent b12b067a28
commit 363c4029f6
117 changed files with 8553 additions and 1877 deletions

View File

@@ -195,9 +195,10 @@ def find_machine_media(parent):
slotlist.add(slotname)
# print(slotlist)
for name in ("scsi","scsibus","scsi0", "scsi1"):
if name + ":4" in slotlist and name + ":3" not in slotlist:
media["cdrom"] = media.get("cdrom", 0) + 1
# 2026-01 -- no longer needed.
#for name in ("scsi","scsibus","scsi0", "scsi1"):
# if name + ":4" in slotlist and name + ":3" not in slotlist:
# media["cdrom"] = media.get("cdrom", 0) + 1
#print(media)
@@ -303,8 +304,9 @@ def find_media(parent, include_slots=False):
# scsibus:1 is special cd-rom
if name == "a2scsi":
media["cdrom"] = media.get("cdrom", 0) + 1
# 2026-01 -- no longer needed.
#if name == "a2scsi":
# media["cdrom"] = media.get("cdrom", 0) + 1
if not media: return None
return media
@@ -345,6 +347,7 @@ DEVICE_MEDIA = {
'midiin': 'midiin',
'midiout': 'midiout',
'aplcdsc': 'cdrom',
'aplcdsc_ext': 'cdrom',
# 'null_modem': 'bitbanger',
# 'rs232_sync_io': 'bitbanger',
'a2romusr': 'rom',