mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-01 07:33:45 -06:00
fix: a games part is its system's card
Closes every finding of code_audit_23 and tui_audit_16: AmberELEC and EmuELEC cards found as theirs, ArkOS cards told by bgmusic or launchimages, counts that agree and read a copy of the right size before calling it in place, one terminal width, line mode in the screen's order and words, a tap shown armed, and which-pack naming the first screen.
This commit is contained in:
1 parent
27b945ba4c
commit
a4faf536dd
12 files changed
+1257
-254
No files matched your search
@@ -161,8 +161,13 @@ def _marker(rule: _install._OsRule) -> str:
|
||||
path, pattern = rule.values
|
||||
line = re.sub(r"\\s\*\$$", "", re.sub(r"^(\^|\\A)", "", pattern)).replace("\\", "")
|
||||
return f"`{path}` holding the line `{line}`"
|
||||
return ", ".join(f"`{value}`" if PurePosixPath(value).suffix else f"`{value}/`"
|
||||
for value in rule.values)
|
||||
named = ", ".join(f"`{value}`" if PurePosixPath(value).suffix else f"`{value}/`"
|
||||
for value in rule.values)
|
||||
if rule.method == "games_part":
|
||||
# Told on the games part beside its bios folder, on a drive the
|
||||
# system does not call fixed (install.games_part).
|
||||
return f"{named} beside `bios/`, on a drive that is not a fixed disk"
|
||||
return named
|
||||
|
||||
|
||||
def _list_words(plat: str) -> str:
|
||||
@@ -173,7 +178,8 @@ def _list_words(plat: str) -> str:
|
||||
def card_marker_rows() -> list[list[str]]:
|
||||
"""The files that name a card or a SHARE drive, in the order they are
|
||||
read: install.py's card rules, then its SHARE drive files."""
|
||||
rows = [[_marker(rule), rule.name, f"`{rule.bios}`, {_list_words(rule.manifest)}"]
|
||||
rows = [[_marker(rule), rule.name,
|
||||
f"`{rule.bios or 'bios'}`, {_list_words(rule.manifest)}"]
|
||||
for rule in _install._card_rules()]
|
||||
hostname = "system.hostname=BATOCERA"
|
||||
for plat, marker in _install._SHARE_DRIVES:
|
||||
|
||||
@@ -3940,8 +3940,13 @@ def first_screen_words() -> list[str]:
|
||||
showed a line menu (Enter, i, c, q) nobody saw, whose keys had changed
|
||||
since."""
|
||||
installer = _installer()
|
||||
return [f"The command opens a screen. **{installer.TUI_INSTALL_ROW}** gets every "
|
||||
f"file, **{installer.TUI_SYSTEMS_ROW}** fewer."]
|
||||
# The screen it opens first: the setup found, or the list when none
|
||||
# is. Install and Choose systems come on the next one (tui_audit_16
|
||||
# P3-10).
|
||||
return [f"The command asks **{installer.TUI_FOUND_TITLE}** with the setup it found, "
|
||||
f"or **{installer.TUI_CHOOSE_TITLE}** with a list when it finds none. Then "
|
||||
f"**{installer.TUI_INSTALL_ROW}** gets every file, "
|
||||
f"**{installer.TUI_SYSTEMS_ROW}** only the consoles you pick."]
|
||||
|
||||
|
||||
def check_pass_line() -> str:
|
||||
|
||||
Reference in new issue
Block a user