mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-26 19:38:52 -06:00
fix: ask folder questions through one reader
The copy question, the card question and the BIOS folder question each read q, Enter, a listed number or a folder. With no drive listed, the copy question took "2" as the folder ./2. They share one reader now, and the y/N questions read only y or yes: "yeah" created folders.
This commit is contained in:
1 parent
1f215f1732
commit
7b89a558ff
10 files changed
+127
-130
No files matched your search
@@ -18,7 +18,7 @@ from pathlib import Path, PurePosixPath
|
||||
from typing import NamedTuple
|
||||
|
||||
from installer.cards import card_system
|
||||
from installer.console import _ask
|
||||
from installer.console import _answer_yes
|
||||
from installer.events import EVENTS
|
||||
from installer.host_fs import NOT_WRITABLE, _write_refused
|
||||
from installer.local_check import _sha256_file
|
||||
@@ -393,9 +393,8 @@ def finish_app(
|
||||
continue
|
||||
if not interactive or args.yes or LOCAL.offline:
|
||||
continue
|
||||
answer = _ask(f"\nPut RetroBIOS on this {card.system} card, to check and update "
|
||||
"its BIOS files from the console later? [y/N] ")
|
||||
if answer.lower() in ("y", "yes"):
|
||||
if _answer_yes(f"\nPut RetroBIOS on this {card.system} card, to check and "
|
||||
"update its BIOS files from the console later? [y/N] "):
|
||||
chosen.append(card)
|
||||
failed = False
|
||||
for card in chosen:
|
||||
|
||||
Reference in new issue
Block a user