mirror of
https://github.com/ksherlock/ample.git
synced 2025-04-07 13:38:01 +00:00
fix Atari rom names
This commit is contained in:
parent
9031b481ce
commit
dc67db2ce6
@ -404,6 +404,18 @@
|
||||
<key>description</key>
|
||||
<string>Asante MC3NB Ethernet card</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>value</key>
|
||||
<string>megast</string>
|
||||
<key>description</key>
|
||||
<string>Atari MEGA ST (USA)</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>value</key>
|
||||
<string>st</string>
|
||||
<key>description</key>
|
||||
<string>Atari ST (USA)</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>value</key>
|
||||
<string>st_kbd</string>
|
||||
@ -698,12 +710,6 @@
|
||||
<key>description</key>
|
||||
<string>M&R Enterprises SUP'R'TERMINAL</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>value</key>
|
||||
<string>megast</string>
|
||||
<key>description</key>
|
||||
<string>MEGA ST (USA)</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>value</key>
|
||||
<string>mac128k</string>
|
||||
@ -1028,12 +1034,6 @@
|
||||
<key>description</key>
|
||||
<string>RasterOps Colorboard 264/SE30</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>value</key>
|
||||
<string>st</string>
|
||||
<key>description</key>
|
||||
<string>ST (USA)</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>value</key>
|
||||
<string>swtpc8212_device</string>
|
||||
|
@ -488,7 +488,7 @@ def make_smartport(machine):
|
||||
"slots": slots
|
||||
}
|
||||
|
||||
def fix_machine_description(x):
|
||||
def fix_machine_description(x, devname):
|
||||
#
|
||||
x = x.replace(", www.dreher.net","")
|
||||
return x
|
||||
@ -505,7 +505,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": fix_machine_description(desc) } # "devname": devname or ''}
|
||||
d = { "value": name, "description": fix_machine_description(desc, devname) } # "devname": devname or ''}
|
||||
if default: d["default"] = True
|
||||
if disabled: d["disabled"] = True
|
||||
if not disabled:
|
||||
|
@ -110,9 +110,10 @@ EXCLUDE = set([
|
||||
|
||||
])
|
||||
|
||||
def fix_machine_description(x):
|
||||
def fix_machine_description(x, devname):
|
||||
# CFFA 2.0 Compact Flash (65C02 firmware, www.dreher.net)
|
||||
x = x.replace(", www.dreher.net","")
|
||||
if devname in ("st", "megast"): x = "Atari " + x
|
||||
return x
|
||||
|
||||
def build_known_roms_list():
|
||||
@ -190,7 +191,7 @@ for m in machines:
|
||||
|
||||
# if full: ROMS = list(mnames)
|
||||
# else: ROMS = list(mnames.difference(EXCLUDE))
|
||||
ROMS = [{ 'value': k, 'description': fix_machine_description(v)} for k, v in mnames.items()];
|
||||
ROMS = [{ 'value': k, 'description': fix_machine_description(v, k)} for k, v in mnames.items()];
|
||||
ROMS.sort(key=lambda x: x.get('description'))
|
||||
|
||||
# data = []
|
||||
|
Loading…
x
Reference in New Issue
Block a user