mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-27 03:48:52 -06:00
fix: run only programs of proven launchers
This commit is contained in:
1 parent
b070d1a41a
commit
0530c007a8
3 files changed
+18
-5
No files matched your search
@@ -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":
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user