refactor: one owner per installer source decision

--emulator says its Narrowed line through detail, as every other narrowing. Detection records that it read the RetroArch configs, and a lookup detects again only before that, held by detection_held. The list and pack open apart from the --from folders, whose refusal one function builds for line mode and the full screen.
This commit is contained in:
Abdessamad Derraz committed 2026-11-22 02:26:45 +01:00
1 parent 18472f9d0f
commit 2b5031ecd6
15 files changed
+121 -89

No files matched your search

+3
View File
@@ -10,6 +10,7 @@ from collections.abc import Callable, Iterator
from pathlib import Path
from installer.config_values import (
_CONFIGS_READ,
_parse_bash_var,
_parse_json_path,
_parse_ps1_var,
@@ -826,6 +827,8 @@ def _without_unnameable(found: list[tuple[str, Path]]) -> list[tuple[str, Path]]
@_detection_guarded
def detect_platforms(os_type: str) -> list[tuple[str, Path]]:
"""Detect installed emulator platforms and their BIOS directories."""
if not _CONFIGS_READ:
_CONFIGS_READ.append(True)
found: list[tuple[str, Path]] = []
if os_type == "wsl":
_note_windows_unasked()