mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-30 13:28: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
@@ -7,13 +7,13 @@ import os
|
||||
import re
|
||||
import shutil
|
||||
import stat
|
||||
import sys
|
||||
import tempfile
|
||||
import threading
|
||||
from collections.abc import Callable
|
||||
from pathlib import Path
|
||||
from typing import Any
|
||||
|
||||
from installer.detection_notes import echo_detection
|
||||
from installer.events import EVENTS
|
||||
from installer.text import screen_text
|
||||
|
||||
@@ -103,7 +103,7 @@ def _note_refused(path: Path, exc: OSError) -> None:
|
||||
_DETECTION_UNREADABLE.add(refused[0])
|
||||
words = refused_words(*refused)
|
||||
EVENTS.emit("unsearched", folder=str(refused[0]), reason=refused[1], message=words)
|
||||
print(f" {screen_text(words)}", file=sys.stderr)
|
||||
echo_detection(f" {screen_text(words)}")
|
||||
|
||||
|
||||
def _held(path: Path) -> bool:
|
||||
|
||||
Reference in new issue
Block a user