fix: run only programs of proven launchers

This commit is contained in:
Abdessamad Derraz committed 2026-11-21 21:42:19 +01:00
1 parent b070d1a41a
commit 0530c007a8
3 files changed
+18 -5

No files matched your search

+3 -3
View File
@@ -953,11 +953,11 @@ class ExecutedFile:
source_ref: str
def executed_files(config: dict) -> list[ExecutedFile]:
"""Every file a platform's launchers execute, from records passing it to exec."""
def executed_files(config: dict, profiles: Mapping[str, dict]) -> list[ExecutedFile]:
"""Every file a platform's launchers execute, from bound records passing it to exec."""
base = str(config.get("base_destination") or "bios")
found: list[ExecutedFile] = []
for record in config.get("launchers") or []:
for record in bound_launchers(config, profiles):
if record.get("kind") not in ("fixed_name", "names_searched"):
continue
if str(record.get("passes_to") or "").strip() != "exec":
+1 -1
View File
@@ -143,7 +143,7 @@ def standalone_set(config: dict, profiles: Mapping[str, dict]) -> set[str]:
}
names |= {
EXECUTED_PREFIX + json.dumps([run.emulator, run.name, run.place, run.source_ref])
for run in executed_files(config)
for run in executed_files(config, profiles)
}
return names | content_folder_tags(config)