fix: pass --from to the runs the tui starts

The interface accepted --from and its check and install runs never got it, so they downloaded what the folder holds. Pins in install.sh and install.ps1 follow install.py.
This commit is contained in:
Abdessamad Derraz committed 2026-10-23 16:56:27 +02:00
1 parent 0369c75dfe
commit c496014f64
4 files changed
+20 -2

No files matched your search

+4
View File
@@ -10665,6 +10665,10 @@ def _tui_passthrough(args: argparse.Namespace) -> list[tuple[str, str | None]]:
flags.append((flag, str(Path(value).absolute())))
flags += [("--emulator", name) for name in args.emulator or []]
flags += [("--from-pack", str(Path(pack).absolute())) for pack in args.from_pack or []]
# The handheld launchers start --tui --from the other card: without it here
# the runs downloaded what that card holds.
flags += [("--from", str(Path(folder).absolute()))
for folder in getattr(args, "from", None) or []]
for flag in ("--every-board", "--standalone-copies", "--verbose"):
if getattr(args, flag[2:].replace("-", "_")):
flags.append((flag, None))