mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-29 12:58:51 -06:00
refactor: keep detection lines as data
Detection now keeps what it says in DETECTION_NOTES and prints it only in line mode. The full screen reads the list under detection_held() instead of capturing stdout and stderr and dropping refusals by comparing text, which said a refusal twice once screen_text escaped its folder.
This commit is contained in:
1 parent
36d5827b25
commit
4cb82adce3
12 files changed
+148
-44
No files matched your search
+3
-1
@@ -3,6 +3,7 @@ from __future__ import annotations
|
||||
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
from pathlib import Path
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
@@ -19,6 +20,7 @@ from installer.cards import (
|
||||
drive_kind,
|
||||
)
|
||||
from installer.console import _ask, _quit
|
||||
from installer.detection_notes import note_detection
|
||||
from installer.detect_frontends import _UNNAMEABLE, _android_storage_root, detect_platforms
|
||||
from installer.detect_os import (
|
||||
_DETECTED_OS,
|
||||
@@ -555,7 +557,7 @@ def found_setups(os_type: str) -> tuple[list[tuple[str, Path, str]], set]:
|
||||
# A drive whose files fit two systems is said, never guessed.
|
||||
words = doubt_words(mount)
|
||||
if words:
|
||||
print(f" {words}")
|
||||
note_detection(f" {words}", sys.stdout)
|
||||
continue
|
||||
if (card[0], card[1]) not in found and card[2] not in here:
|
||||
_DETECTED_OS.setdefault((card[0], card[1]), card[2])
|
||||
|
||||
Reference in new issue
Block a user