feat: record files a launcher never opens

unread_on names the platforms whose launcher points the emulator at other files. RetroBat writes absolute BIOS paths into standalone BlastEm's config, so the default names were reported as required and missing there. Such an entry leaves that platform's gap report and pack, and its emulator page says where it is never opened.
This commit is contained in:
Abdessamad Derraz committed 2026-10-20 10:27:15 +02:00
1 parent 1f64991ff5
commit 40bc07aa3a
5 files changed
+46 -2

No files matched your search

+11 -1
View File
@@ -539,6 +539,16 @@ def installed_with_emulator(entry: dict, platform: str = "") -> bool:
return bool(entry.get("bundled")) and platform not in (entry.get("not_bundled_on") or [])
def unread_on(entry: dict, platform: str) -> bool:
"""Whether this platform's launcher points the emulator at other files.
RetroBat starts standalone BlastEm with absolute paths to its own BIOS
names in the config it writes, so the defaults the emulator would read
(cdbios.bin, colecovision_bios.col) are never opened there.
"""
return bool(platform) and platform in (entry.get("unread_on") or [])
def deliverable(entries: list[dict], standalone: bool, platform: str = "") -> list[dict]:
"""The entries of one build a pack has to bring.
@@ -549,7 +559,7 @@ def deliverable(entries: list[dict], standalone: bool, platform: str = "") -> li
"""
return [
e for e in filter_files_by_mode(entries, standalone)
if not installed_with_emulator(e, platform)
if not installed_with_emulator(e, platform) and not unread_on(e, platform)
]