mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-04-13 12:22:33 -05:00
Regenerate database and update emulator profiles
Regenerate database.json and update README counts/timestamps; add and normalize numerous BIOS entries and hashes. Key changes: update generated_at timestamp and system count (355→357) in README; add OpenBIOS / HLE fallback and additional aliases to beetle_psx, include beetle_psx core name and profiled_date update; add laseractive to ares systems; adjust atari800 systems and source_ref line numbers; mark dinothawr as a system and expand its note; update gsplus upstream/profile date, add apple-iie system and tweak source_refs; add pcsx2 core to lrps2; refresh mame profiled_date and add multiple systems and BIOS root sets. Miscellaneous script changes and other JSON normalization to reflect newly discovered/merged BIOS files.
This commit is contained in:
@@ -732,14 +732,30 @@ def derive_manufacturer(system_id: str, system_data: dict) -> str:
|
||||
return "Other"
|
||||
|
||||
|
||||
# Abbreviations that normalization alone cannot resolve.
|
||||
# Maps platform-specific short names to canonical profile system IDs.
|
||||
SYSTEM_ALIASES: dict[str, str] = {
|
||||
"gmaster": "hartung-game-master",
|
||||
"n64dd": "nintendo-64dd",
|
||||
"neogeo64": "hyper-neogeo64",
|
||||
# Platform IDs missing the manufacturer-prefix hyphen
|
||||
"atari5200": "atari-5200",
|
||||
"atari7800": "atari-7800",
|
||||
"atarist": "atari-st",
|
||||
"sega32x": "sega-32x",
|
||||
"segastv": "sega-stv",
|
||||
}
|
||||
|
||||
|
||||
def _norm_system_id(sid: str) -> str:
|
||||
"""Normalize system ID for cross-platform matching.
|
||||
|
||||
Strips manufacturer prefixes and separators so that platform-specific
|
||||
IDs (e.g., "xbox", "nintendo-wiiu") match profile IDs
|
||||
(e.g., "microsoft-xbox", "nintendo-wii-u").
|
||||
Resolves known aliases, then strips manufacturer prefixes and separators
|
||||
so that platform-specific IDs (e.g., "xbox", "nintendo-wiiu") match
|
||||
profile IDs (e.g., "microsoft-xbox", "nintendo-wii-u").
|
||||
"""
|
||||
s = sid.lower().replace("_", "-")
|
||||
s = SYSTEM_ALIASES.get(s, s)
|
||||
for prefix in MANUFACTURER_PREFIXES:
|
||||
if s.startswith(prefix):
|
||||
s = s[len(prefix):]
|
||||
|
||||
Reference in New Issue
Block a user