mirror of
https://github.com/ksherlock/ample.git
synced 2026-03-11 07:42:10 +00:00
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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user