mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-17 15:17:52 -06:00
fix: read a RetroDECK bios dest as its folder
This commit is contained in:
1 parent
896dbc8660
commit
7da6e117a3
5 files changed
+37
-10
No files matched your search
@@ -14074,6 +14074,12 @@ def _list_card_choice(plat: str, dest: Path) -> CardChoice:
|
||||
return CardChoice(plat, dest, f"{screen_text(str(dest))} holds the files of "
|
||||
f"{names}: installing into it as named. Name the card's BIOS "
|
||||
"folder with --dest to write there.")
|
||||
if plat == "retrodeck" and dest.name.lower() == "bios" and not _is_dir(dest / "bios"):
|
||||
# RetroDECK's list writes bios/, roms/ and the rest below its own
|
||||
# folder: its BIOS folder, which --help asks for, got bios/bios.
|
||||
return CardChoice(plat, dest.parent, f"{shown_path(dest)} is RetroDECK's BIOS "
|
||||
f"folder: the files go below {shown_path(dest.parent)}, the "
|
||||
"RetroDECK folder holding it")
|
||||
return CardChoice(plat, dest)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user