add bios options to the machine plist (no gui yet), clean up CFFA name slightly.

This commit is contained in:
Kelvin Sherlock
2022-03-25 17:20:22 -04:00
parent 4e05ff7e8c
commit 5a0fdd5a7e
57 changed files with 853 additions and 605 deletions

View File

@@ -422,7 +422,7 @@ def make_smartport(machine):
# iic: <slot name="sl6:0" .. "sl6:1">
# apple 3: <slot name="0" .. "3">
# apple 2: diskiing card
# maclc <slot name="scsi:1" .. "scsi:7" (but not 4-7 not configurable)
# maclc <slot name="scsi:1" .. "scsi:7" (but 4-7 not configurable)
# maciix <slot name="scsi:6">
# macse <slot name="scsibus:6">
@@ -453,6 +453,10 @@ def make_smartport(machine):
"slots": slots
}
def fix_machine_description(x):
#
x = x.replace(", www.dreher.net","")
return x
def make_slot(m, slotname, nodes):
@@ -466,7 +470,7 @@ def make_slot(m, slotname, nodes):
default = x.get("default") == "yes"
disabled = name in DISABLED or (m, name) in DISABLED
d = { "value": name, "description": desc } # "devname": devname or ''}
d = { "value": name, "description": fix_machine_description(desc) } # "devname": devname or ''}
if default: d["default"] = True
if disabled: d["disabled"] = True
if not disabled:
@@ -490,6 +494,18 @@ def make_slot(m, slotname, nodes):
}
def make_bios(m):
bios = []
for x in m.findall('./biosset'):
bios.append({
"value": x.get("name"),
"description": x.get("description")
})
return bios
devices = {}
@@ -567,6 +583,9 @@ for m in machines:
data["slots"] = slots
bios = make_bios(machine)
if bios: data["bios"] = bios
devices = make_devices()
if smartport: devices.insert(0, smartport)
data["devices"] = devices

View File

@@ -110,6 +110,10 @@ EXCLUDE = set([
])
def fix_machine_description(x):
# CFFA 2.0 Compact Flash (65C02 firmware, www.dreher.net)
x = x.replace(", www.dreher.net","")
return x
def build_known_roms_list():
infile = "mame-0233-full.html"
@@ -186,7 +190,7 @@ for m in machines:
# if full: ROMS = list(mnames)
# else: ROMS = list(mnames.difference(EXCLUDE))
ROMS = [{ 'value': k, 'description': v} for k, v in mnames.items()];
ROMS = [{ 'value': k, 'description': fix_machine_description(v)} for k, v in mnames.items()];
ROMS.sort(key=lambda x: x.get('description'))
# data = []