mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-17 17:03:27 -05:00
fix: file every platform system under a known id
Thirty platform system ids, such as sufami, pokemini, vsmile, and Recalbox's comma-joined msx1,msx2, matched no system any profile names, so no core file was attributed to them and --system missed them. The scraper maps now carry those names, and a test holds every platform system to a profile system apart from two named folds.
This commit is contained in:
1 parent
0894b67d3f
commit
dbcd26d3ab
9 files changed
+764
-727
No files matched your search
@@ -45,7 +45,12 @@ SOURCE_URL = (
|
||||
|
||||
SYSTEM_SLUG_MAP = {
|
||||
"3do": "3do",
|
||||
"bk": "elektronika-bk",
|
||||
"dragon": "dragon64",
|
||||
"palm": "palm-os",
|
||||
"pokemini": "nintendo-pokemon-mini",
|
||||
"sufami": "nintendo-sufami-turbo",
|
||||
"videopacplus": "philips-videopac",
|
||||
"trs80coco": "coco",
|
||||
"amiga600": "commodore-amiga",
|
||||
"amiga1200": "commodore-amiga",
|
||||
@@ -230,7 +235,10 @@ class Scraper(BaseScraper):
|
||||
|
||||
for system_elem in root.findall(".//system"):
|
||||
platform = system_elem.get("platform", "")
|
||||
system_slug = SYSTEM_SLUG_MAP.get(platform, platform)
|
||||
# One <system> can serve several platforms ("msx1,msx2", "gb,gbc"):
|
||||
# it is filed under the first, which names the machine family.
|
||||
first = platform.split(",")[0].strip()
|
||||
system_slug = SYSTEM_SLUG_MAP.get(first, first)
|
||||
fullname = system_elem.get("fullname", "")
|
||||
|
||||
for bios_elem in system_elem.findall("bios"):
|
||||
|
||||
Reference in new issue
Block a user