fix: read each named core's own entry in recalbox

An element's mandatory flag came from the one truth entry its md5 paired
with. saturn/saturn_bios.bin names yabause, yabasanshiro and kronos,
which require it, and was paired with the beetle_saturn entry, which
does not. Each named core's entries for the file, found by name, now
decide, except a namesake elsewhere in the same tree (bluemsx KANJI.rom
under Shared Roms is not the one under MSX2+ - European).
This commit is contained in:
Abdessamad Derraz committed 2026-10-21 05:39:17 +02:00
1 parent 79d3a86db7
commit 28435230a7
6 files changed
+138 -29

No files matched your search

+3 -2
View File
@@ -535,9 +535,10 @@ def landed_changes(exporter: object, systems: dict) -> LandedChanges:
"added", entry, None, None, _added_fields(exporter, entry)
))
continue
# Asked of the exporter: a format that names each entry's cores
# reads every entry of those cores, not only the paired one.
if (
(entry.truth or {}).get("required") is not None
and entry.platform.get("required") is not None
entry.platform.get("required") is not None
and exporter.states(entry, "required")
and exporter.required_value(entry) != bool(entry.platform["required"])
):