Commit Graph
79 Commits
Author SHA1 Message Date
Abdessamad Derraz 3fabb52367 docs: cite the site modules at their paths
Comments in the workflow, the bootstraps, the installer, the site
sources and the tests still named scripts/sitebootstrap.py and the other
site modules sitegen/ took over. test_cited_scripts checks that every
scripts/ path or -m module a tracked text names exists.
2026-11-24 10:22:33 +01:00
Abdessamad Derraz 6dd9970fb6 chore: order the installer imports after the split 2026-11-24 06:21:13 +01:00
Abdessamad Derraz 2a4fb883d3 refactor: move --restore out of the install record 2026-11-24 06:21:13 +01:00
Abdessamad Derraz a535969644 refactor: move the first setup passes out 2026-11-24 06:21:13 +01:00
Abdessamad Derraz 4c8e9077c5 refactor: split the install run passes 2026-11-24 06:21:13 +01:00
Abdessamad Derraz 4e73a39b1e refactor: move the pack parts to their own module 2026-11-24 06:21:13 +01:00
Abdessamad Derraz 9e2a7b851c refactor: split frontend detection by subject 2026-11-24 06:21:13 +01:00
Abdessamad Derraz cf0a1f1411 refactor: split the --from sources by subject 2026-11-24 06:21:13 +01:00
Abdessamad Derraz 935eab63e2 refactor: split games into index, regions, folders 2026-11-24 06:21:13 +01:00
Abdessamad Derraz 9098fba1bf refactor: split the full screen session by subject 2026-11-24 06:21:13 +01:00
Abdessamad Derraz 42074158fc refactor: split removal into plan, run and backups 2026-11-24 06:21:13 +01:00
Abdessamad Derraz ace6b3d451 refactor: split the full screen views by subject 2026-11-24 06:21:13 +01:00
Abdessamad Derraz e897dd9d65 refactor: split the full screen actions by screen 2026-11-24 06:21:12 +01:00
Abdessamad Derraz efd168dc47 fix: check the pack's space before its dry run 2026-11-24 03:39:00 +01:00
Abdessamad Derraz dec7d4bc05 fix: a left-out folder carries its reason 2026-11-24 03:39:00 +01:00
Abdessamad Derraz e7b9acb425 fix: a recorded region is the same choice 2026-11-24 03:38:59 +01:00
Abdessamad Derraz 9feee29318 fix: one rule trims a recorded choice 2026-11-24 03:38:59 +01:00
Abdessamad Derraz fed933daef fix: refuse a missing --for-games folder up front 2026-11-24 02:19:14 +01:00
Abdessamad Derraz 147916b6af fix: one rule for options the screen combines
The full screen offered --one-per-slot from its own copy of the CLI rule,
checked before the install record's --declared-only was added, so every run
it started was refused. combinations.py holds the rule for both, and the
screen decides --standalone and --one-per-slot against the complete list.
tui_blocker's decision is now a TuiObstacle the line-mode sentence reads,
and the --jobs default is DEFAULT_JOBS everywhere.
2026-11-24 02:19:14 +01:00
Abdessamad Derraz 374891b83e fix: one rule for a recorded file's systems 2026-11-24 01:14:04 +01:00
Abdessamad Derraz 0d0b6c54b7 fix: read on-card once with the folder facts
The plan rows, plan text and result screen asked on every frame whether the BIOS folder sits on its system's card, scanning the mounted drives each time. A card pulled out while the plan was open moved Check again from under the focus. The answer is now read with the other folder facts at the end of the check.
2026-11-24 00:29:38 +01:00
Abdessamad Derraz 06f87cf957 refactor: size --list-cores with core_files 2026-11-24 00:20:04 +01:00
Abdessamad Derraz f7157a5191 fix: a refusal mid-run ends on the summary 2026-11-24 00:20:03 +01:00
Abdessamad Derraz 58b4842c3f fix: standalone-only runs end on their summary 2026-11-23 23:07:45 +01:00
Abdessamad Derraz d0a7dae589 fix: ask state.offline for the app row 2026-11-23 23:07:45 +01:00
Abdessamad Derraz 7b0a5d5d4a refactor: one rule for failed files in both modes 2026-11-23 21:52:45 +01:00
Abdessamad Derraz d7f7d9a63f refactor: share copy plan and failure causes
Standalone copies: copy_sources is the one reading of a copy entry. The
platform pass copies only list entries the run verified in place, never
a disk scan, and --check and --dry-run report the emulator folders.

Failures: failure_causes classifies each failed file once. A failures
event before the summary carries the cause, and the full screen gives
the remedies line mode gives, with no substring test.
2026-11-23 21:44:20 +01:00
Abdessamad Derraz 77115be738 refactor: the run decides what it fetches, once 2026-11-23 21:44:08 +01:00
Abdessamad Derraz 19871672e1 refactor: return the restore outcome as a record 2026-11-23 21:02:47 +01:00
Abdessamad Derraz 2b5031ecd6 refactor: one owner per installer source decision
--emulator says its Narrowed line through detail, as every other narrowing. Detection records that it read the RetroArch configs, and a lookup detects again only before that, held by detection_held. The list and pack open apart from the --from folders, whose refusal one function builds for line mode and the full screen.
2026-11-22 02:26:45 +01:00
Abdessamad Derraz a51e6d3e3c docs: drop three clause semicolons 2026-11-22 01:25:24 +01:00
Abdessamad Derraz 352e2bbb5e refactor: take a recorded choice in one place
The journey to another device's folder no longer stops on Create the folder?: one missing level is created as line mode does, since the shared rule for a missing BIOS folder.
2026-11-22 01:06:40 +01:00
Abdessamad Derraz c113a79c70 fix: retry bios files by the shared rule 2026-11-22 01:06:40 +01:00
Abdessamad Derraz a9d94acdac fix: one full-drive remedy for plan and refusal
The line plan said to choose another folder, which line mode cannot do,
while the refusal after Enter named --dest. space_remedy now gives the
remedy to both, the screen keeping its folder row.
2026-11-22 00:58:06 +01:00
Abdessamad Derraz c4a129e200 fix: follow moved retrodeck folders under --dest
A run given --platform and --dest never detects, so retrodeck.json was
never read and a moved bios/ folder was ignored. MovedFolders looks the
root up on first use, is reset per run, and detection only warms it.
2026-11-22 00:58:06 +01:00
Abdessamad Derraz 9f3fc2e0c1 refactor: read offline from the screen state
The rows asked state.offline while the plan, the estimate and the
result read the environment, kept in step only by the session loop.
tui_offline_only(state) is the one question; the variable only carries
the choice to the runs and the wording.
2026-11-22 00:58:06 +01:00
Abdessamad Derraz af34c81d71 fix: one rule for a missing bios folder
The full screen asked Create the folder? for a single missing level,
which line mode creates, and focused Create for two, which line mode
asks with no as the answer. missing_folder() gives both modes the
nearest folder, the missing levels and the verdict.
2026-11-22 00:58:05 +01:00
Abdessamad Derraz 11e3ebb44f fix: say why a removal stops in its events
A --file outside the folder printed its own line and returned 2 with no
removal_plan, and a removal or backup deletion with no yes, a folder that
is no backup and a setup left open ended on stderr alone. The first goes
through _removal_refused, the others raise Refusal.
2026-11-21 21:42:20 +01:00
Abdessamad Derraz 665e2ebb52 fix: send every refusal as an error event
--romm-firmware, --pack without a platform, an option the list does not
record, a board list the run cannot go on without, a full drive and the
--dest a named platform needs printed and exited on their own: --events
got end and no error. Each now raises Refusal where it is decided, and
refuse_name, --find and the space check stop formatting their own copy.
2026-11-21 21:42:20 +01:00
Abdessamad Derraz 571c4bbfd9 fix: count roms left out after the choice
The roms, configs and emulator folder lines were printed while the
entries were placed, before --system, --core, --region and the menu
narrowed the list: --system panasonic-3do on EmuDeck said 1918 roms
files were left out where 6 belong to the run. Placement now only
records the reason, and say_unplaced counts the narrowed entries
next to say_saves. The unused printing branch of place_save_entries
goes with it.
2026-11-21 21:42:20 +01:00
Abdessamad Derraz 6e0b0724de fix: hold the offline choice in the screen state 2026-11-21 21:42:19 +01:00
Abdessamad Derraz f0ab5181ab fix: keep the offline variable beside --offline 2026-11-21 21:42:19 +01:00
Abdessamad Derraz 8fc294ef97 fix: a full drive is an event, not stderr text 2026-11-21 19:51:02 +01:00
Abdessamad Derraz 0b0bf29089 fix: say why an unreadable board list stops a pack 2026-11-21 19:50:47 +01:00
Abdessamad Derraz c888ae8101 fix: keep stdout to events in a removal
--remove and --backups opened the --manifest and --from-pack before
the event stream started: the list's platform and the pack name went to
stdout ahead of start, and a refusal of the pack came with no event.
They are opened inside the action now.
2026-11-21 19:50:46 +01:00
Abdessamad Derraz eba627aa89 refactor: one refusal path to stderr and events
Library functions printed their refusal and exited, each deciding on its
own whether --events got an error event. --cores-dir, --installed-cores
with no core, a list without system_cores or standalone_builds, a pack
that cannot be used, a board list a run needs and --dest alone beside
two setups ended on code 1 with no reason in the stream.

They now raise Refusal (installer/refusal.py), carrying the stage, the
reason, the platform, the lines and the code. The install, an action
framed by events and main report it once: the error event, then the
same lines on stderr, so the text and exit codes stay as they were.
2026-11-21 19:50:46 +01:00
Abdessamad Derraz ced68a9135 fix: a removal drops the system name it recorded
The record keeps --system as typed (psx). Removing that system compared
the recorded name to the id, kept psx in the choice, and the next
update installed the PlayStation files again.
2026-11-21 19:50:46 +01:00
Abdessamad Derraz 80f42f0573 fix: one system name rule for install and remove
The removal resolved --system against the list's ids alone, so a
platform name or a site title that installed the files was refused as
an unknown system. Both paths now call resolve_systems.
2026-11-21 19:50:46 +01:00
Abdessamad Derraz 475dfe0e0a fix: quit, proxy and setup folder read once
A chosen quit is read from the state, so the version note after the
quit line no longer sends it to stdout where the launcher misses it.

The proxy the screen names is the one urllib uses for the list's URL
(scheme variable or system settings, NO_PROXY honoured), recorded in
the ListProblem when the request fails.

The setup screen and the plan format from facts read once (the BIOS
folder of each setup, the retroarch.cfg naming dest), never by a frame
in the thread that reads the keys.
2026-11-21 19:50:46 +01:00
Abdessamad Derraz 1593dfa85a docs: drop two clause semicolons 2026-11-21 16:59:28 +01:00