chore: merge the installer screens from main

This commit is contained in:
Abdessamad Derraz committed 2026-11-11 12:10:37 +01:00
commit f72a5b9e9b
50 files changed
+2703 -602

No files matched your search

@@ -1,14 +1,21 @@
RetroBIOS: Options
Each row is an option of the command line, named on the right.
RetroBIOS: Change
What to install
> Preferred regions: North America, Japan --region
Game data: kept --no-game-data
Installed cores only: no (1 found) --installed-cores
Cores: all --core
Parallel downloads: 8 --jobs
Emulators: all --emulator
Game data: kept --no-game-data
Where
BIOS folder: ~/.config/retroarch/system --dest
Copy from: none --from
From a pack: none --from-pack
For which device
Device: every board --target
Installed cores only: no (1 found) --installed-cores
How
Without the internet: no --offline
Parallel downloads: 8 --jobs
See
Preview the file list --dry-run
Show the command line
@@ -24,13 +31,6 @@
@@ -1,12 +1,12 @@
RetroBIOS: Options
RetroBIOS: Change
What to install
> Preferred regions: North America, Ja
Game data: kept
Installed cores only: no (1 found)
Cores: all
Parallel downloads: 8
Emulators: all
Game data: kept
Where
BIOS folder: ~/.config...ch/system
Copy from: none
Preview the file list
Show the command line
1-8 of 18
A Open B Back <> Set ? Help
@@ -1,15 +1,15 @@
RetroBIOS: Options
RetroBIOS: Change
What to install
> Preferred regions: North America, Ja
Game data: kept
Installed cores only: no (1 found)
Cores: all
Parallel downloads: 8
Emulators: all
Game data: kept
Where
BIOS folder: ~/.config...ch/system
Copy from: none
Preview the file list
Show the command line
Sets --region
From a pack: none
For which device
Device: every board
1-11 of 18
A Open B Back <> Set ? Help
@@ -1,24 +1,24 @@
RetroBIOS: Options
Each row is an option of the command line, named on the right.
RetroBIOS: Change
What to install
> Preferred regions: North America, Japan --region
Game data: kept --no-game-data
Installed cores only: no (1 found) --installed-cores
Cores: all --core
Parallel downloads: 8 --jobs
Emulators: all --emulator
Game data: kept --no-game-data
Where
BIOS folder: ~/.config/retroarch/system --dest
Copy from: none --from
From a pack: none --from-pack
For which device
Device: every board --target
Installed cores only: no (1 found) --installed-cores
How
Without the internet: no --offline
Parallel downloads: 8 --jobs
See
Preview the file list --dry-run
Show the command line
A/Enter Open B/Esc Back Left/Right Set ? Help
+105 -23
View File
@@ -336,7 +336,7 @@
Choose systems
Copy the BIOS files from an old card or a folder
Details
Options
Change
Quit
@@ -366,7 +366,7 @@
^[[0;1;35mA/Enter^[[0m Install ^[[0;2mB/Esc^[[0m Back ^[[0;2mY/o^[[0m Options ^[[0;2m?^[[0m Help
^[[0;1;35mA/Enter^[[0m Install ^[[0;2mB/Esc^[[0m Back ^[[0;2mY/o^[[0m Change ^[[0;2m?^[[0m Help
=== plan-in-place
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: RetroArch^[[0m
@@ -375,7 +375,7 @@
^[[0;7;35m > Close^[[0m
Details
Options
Change
@@ -407,7 +407,7 @@
^[[0;1;35mA/Enter^[[0m Close ^[[0;2mB/Esc^[[0m Back ^[[0;2mY/o^[[0m Options ^[[0;2m?^[[0m Help
^[[0;1;35mA/Enter^[[0m Close ^[[0;2mB/Esc^[[0m Back ^[[0;2mY/o^[[0m Change ^[[0;2m?^[[0m Help
=== systems
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Choose systems^[[0m
@@ -449,18 +449,25 @@
^[[0;1m ^[[0;1;35m2^[[0;1m of ^[[0;1;35m3^[[0;1m systems: ^[[0;1;35m4^[[0;1m files, ^[[0;1;35m1.0 MB^[[0m
^[[0;1;35mA/Enter^[[0m Tick ^[[0;2mB/Esc^[[0m Done ^[[0;2m?^[[0m Help
=== options
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Options^[[0m
=== change
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Change^[[0m
Each row is an option of the command line, named on the right.
^[[0;1m What to install^[[0m
^[[0;7;35m > Preferred regions: North America, Japan --region^[[0m
Game data: kept --no-game-data
Installed cores only: no (1 found) --installed-cores
Cores: all --core
Parallel downloads: 8 --jobs
Emulators: all --emulator
Game data: kept --no-game-data
^[[0;1m Where^[[0m
BIOS folder: ^[[0;1m~/.config/retroarch/system^[[0m --dest
Copy from: none --from
From a pack: none --from-pack
^[[0;1m For which device^[[0m
Device: every board --target
Installed cores only: no (1 found) --installed-cores
^[[0;1m How^[[0m
Without the internet: no --offline
Parallel downloads: 8 --jobs
^[[0;1m See^[[0m
Preview the file list --dry-run
Show the command line
@@ -476,13 +483,6 @@
@@ -490,6 +490,88 @@
^[[0;1;35mA/Enter^[[0m Open ^[[0;2mB/Esc^[[0m Back ^[[0;2mLeft/Right^[[0m Set ^[[0;2m?^[[0m Help
=== device
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Device^[[0m
Choose the board, the chip of the device the games run on. Every board fits any device.
^[[0;7;35m > (x) h700 named by the card^[[0m
( ) bcm2711 rpi4
( ) x86_64
( ) Every board
^[[0;1;35mA/Enter^[[0m Choose ^[[0;2mB/Esc^[[0m Back ^[[0;2m?^[[0m Help
=== emulators
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Emulators^[[0m
Tick the emulators to install for. With none ticked, every emulator's files are installed.
Filter (/ to type)
[ ] mesen
^[[0;7;35m > [x] pcsx_rearmed^[[0m
None
^[[0;32mDone^[[0m
^[[0;1;35mA/Enter^[[0m Tick ^[[0;2mB/Esc^[[0m Done ^[[0;2m?^[[0m Help
=== regions
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Preferred regions^[[0m
@@ -864,7 +946,7 @@
Up/Down, k/j Move
A/Enter, Start Install
Y, o, Tab Options
Y, o, Tab Change
d Details
B/Esc, Backspace Back
q, Ctrl-C Quit
@@ -914,7 +996,7 @@
Choose systems
Copy the BIOS files from an old card or a folder
Details
Options
Change
Quit
@@ -940,7 +1022,7 @@
^[[0;1;35mA/Enter^[[0m Install ^[[0;2mB/Esc^[[0m Back ^[[0;2mY/o^[[0m Options ^[[0;2m?^[[0m Help
^[[0;1;35mA/Enter^[[0m Install ^[[0;2mB/Esc^[[0m Back ^[[0;2mY/o^[[0m Change ^[[0;2m?^[[0m Help
=== games
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Games on this card^[[0m
@@ -1077,7 +1159,7 @@
Copy the BIOS files from an old card or a folder
Change where
Details
Options
Change
Quit
@@ -1104,4 +1186,4 @@
^[[0;1;35mA/Enter^[[0m Install ^[[0;2mB/Esc^[[0m Back ^[[0;2mY/o^[[0m Options ^[[0;2m?^[[0m Help
^[[0;1;35mA/Enter^[[0m Install ^[[0;2mB/Esc^[[0m Back ^[[0;2mY/o^[[0m Change ^[[0;2m?^[[0m Help
+40 -14
View File
@@ -112,9 +112,9 @@
Choose systems
Copy from an old card or a folder
Details
Options
Change
Quit
^[[0;1;35mA^[[0m Install ^[[0;2mB^[[0m Back ^[[0;2mY^[[0m Options ^[[0;2m?^[[0m Help
^[[0;1;35mA^[[0m Install ^[[0;2mB^[[0m Back ^[[0;2mY^[[0m Change ^[[0;2m?^[[0m Help
=== plan-in-place
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: RetroArch^[[0m
@@ -124,10 +124,10 @@
^[[0;7;35m > Close^[[0m
Details
Options
Change
^[[0;1;35mA^[[0m Close ^[[0;2mB^[[0m Back ^[[0;2mY^[[0m Options ^[[0;2m?^[[0m Help
^[[0;1;35mA^[[0m Close ^[[0;2mB^[[0m Back ^[[0;2mY^[[0m Change ^[[0;2m?^[[0m Help
=== systems
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Choose systems^[[0m
@@ -141,19 +141,45 @@
place
^[[0;1m ^[[0;1;35m2^[[0;1m of ^[[0;1;35m3^[[0;1m systems: ^[[0;1;35m4^[[0;1m files, ^[[0;1;35m1.0 MB^[[0m
^[[0;1;35mA^[[0m Tick ^[[0;2mB^[[0m Done ^[[0;2m?^[[0m Help
=== options
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Options^[[0m
=== change
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Change^[[0m
^[[0;1m What to install^[[0m
^[[0;7;35m > Preferred regions: North America, Ja^[[0m
Game data: kept
Installed cores only: no (1 found)
Cores: all
Parallel downloads: 8
Emulators: all
Game data: kept
^[[0;1m Where^[[0m
BIOS folder: ^[[0;1m~/.config...ch/system^[[0m
Copy from: none
Preview the file list
Show the command line
^[[0;2m 1-8 of 18^[[0m
^[[0;1;35mA^[[0m Open ^[[0;2mB^[[0m Back ^[[0;2m<>^[[0m Set ^[[0;2m?^[[0m Help
=== device
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Device^[[0m
Choose the board, the chip of the
device the games run on. Every board
fits any device.
^[[0;7;35m > (x) h700 named by the card^[[0m
( ) bcm2711 rpi4
( ) x86_64
( ) Every board
^[[0;1;35mA^[[0m Choose ^[[0;2mB^[[0m Back ^[[0;2m?^[[0m Help
=== emulators
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Emulators^[[0m
Tick the emulators to install for.
With none ticked, every emulator's
files are installed.
Filter (/ to type)
[ ] mesen
^[[0;7;35m > [x] pcsx_rearmed^[[0m
None
^[[0;32mDone^[[0m
^[[0;1;35mA^[[0m Tick ^[[0;2mB^[[0m Done ^[[0;2m?^[[0m Help
=== regions
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Preferred regions^[[0m
@@ -276,7 +302,7 @@
Up/Down, k/j Move
A/Enter, Start Install
Y, o, Tab Options
Y, o, Tab Change
d Details
B/Esc, Backspace Back
q, Ctrl-C Quit
@@ -296,7 +322,7 @@
Only what starts: no
Show the games
^[[0;2m 1-4 of 9^[[0m
^[[0;1;35mA^[[0m Install ^[[0;2mB^[[0m Back ^[[0;2mY^[[0m Options ^[[0;2m?^[[0m Help
^[[0;1;35mA^[[0m Install ^[[0;2mB^[[0m Back ^[[0;2mY^[[0m Change ^[[0;2m?^[[0m Help
=== games
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Games on this card^[[0m
@@ -348,4 +374,4 @@
Choose systems
Copy from an old card or a folder
^[[0;2m 1-4 of 8^[[0m
^[[0;1;35mA^[[0m Install ^[[0;2mB^[[0m Back ^[[0;2mY^[[0m Options ^[[0;2m?^[[0m Help
^[[0;1;35mA^[[0m Install ^[[0;2mB^[[0m Back ^[[0;2mY^[[0m Change ^[[0;2m?^[[0m Help
+51 -19
View File
@@ -137,11 +137,11 @@
Choose systems
Copy from an old card or a folder
Details
Options
Change
Quit
^[[0;1;35mA^[[0m Install ^[[0;2mB^[[0m Back ^[[0;2mY^[[0m Options ^[[0;2m?^[[0m Help
^[[0;1;35mA^[[0m Install ^[[0;2mB^[[0m Back ^[[0;2mY^[[0m Change ^[[0;2m?^[[0m Help
=== plan-in-place
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: RetroArch^[[0m
@@ -151,13 +151,13 @@
^[[0;7;35m > Close^[[0m
Details
Options
Change
^[[0;1;35mA^[[0m Close ^[[0;2mB^[[0m Back ^[[0;2mY^[[0m Options ^[[0;2m?^[[0m Help
^[[0;1;35mA^[[0m Close ^[[0;2mB^[[0m Back ^[[0;2mY^[[0m Change ^[[0;2m?^[[0m Help
=== systems
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Choose systems^[[0m
@@ -174,22 +174,54 @@
place
^[[0;1m ^[[0;1;35m2^[[0;1m of ^[[0;1;35m3^[[0;1m systems: ^[[0;1;35m4^[[0;1m files, ^[[0;1;35m1.0 MB^[[0m
^[[0;1;35mA^[[0m Tick ^[[0;2mB^[[0m Done ^[[0;2m?^[[0m Help
=== options
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Options^[[0m
=== change
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Change^[[0m
^[[0;1m What to install^[[0m
^[[0;7;35m > Preferred regions: North America, Ja^[[0m
Game data: kept
Installed cores only: no (1 found)
Cores: all
Parallel downloads: 8
Emulators: all
Game data: kept
^[[0;1m Where^[[0m
BIOS folder: ^[[0;1m~/.config...ch/system^[[0m
Copy from: none
Preview the file list
Show the command line
Sets --region
From a pack: none
^[[0;1m For which device^[[0m
Device: every board
^[[0;2m 1-11 of 18^[[0m
^[[0;1;35mA^[[0m Open ^[[0;2mB^[[0m Back ^[[0;2m<>^[[0m Set ^[[0;2m?^[[0m Help
=== device
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Device^[[0m
Choose the board, the chip of the
device the games run on. Every board
fits any device.
^[[0;7;35m > (x) h700 named by the card^[[0m
( ) bcm2711 rpi4
( ) x86_64
( ) Every board
^[[0;1;35mA^[[0m Choose ^[[0;2mB^[[0m Back ^[[0;2m?^[[0m Help
=== emulators
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Emulators^[[0m
Tick the emulators to install for.
With none ticked, every emulator's
files are installed.
Filter (/ to type)
[ ] mesen
^[[0;7;35m > [x] pcsx_rearmed^[[0m
None
^[[0;32mDone^[[0m
^[[0;1;35mA^[[0m Tick ^[[0;2mB^[[0m Done ^[[0;2m?^[[0m Help
=== regions
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Preferred regions^[[0m
@@ -339,7 +371,7 @@
Up/Down, k/j Move
A/Enter, Start Install
Y, o, Tab Options
Y, o, Tab Change
d Details
B/Esc, Backspace Back
q, Ctrl-C Quit
@@ -363,9 +395,9 @@
Choose systems
Copy from an old card or a folder
Details
Options
Change
Quit
^[[0;1;35mA^[[0m Install ^[[0;2mB^[[0m Back ^[[0;2mY^[[0m Options ^[[0;2m?^[[0m Help
^[[0;1;35mA^[[0m Install ^[[0;2mB^[[0m Back ^[[0;2mY^[[0m Change ^[[0;2m?^[[0m Help
=== games
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Games on this card^[[0m
@@ -427,6 +459,6 @@
Copy from an old card or a folder
Change where
Details
Options
Change
Quit
^[[0;1;35mA^[[0m Install ^[[0;2mB^[[0m Back ^[[0;2mY^[[0m Options ^[[0;2m?^[[0m Help
^[[0;1;35mA^[[0m Install ^[[0;2mB^[[0m Back ^[[0;2mY^[[0m Change ^[[0;2m?^[[0m Help
+73 -23
View File
@@ -208,7 +208,7 @@
Choose systems
Copy the BIOS files from an old card or a folder
Details
Options
Change
Quit
@@ -222,7 +222,7 @@
^[[0;1;35mA/Enter^[[0m Install ^[[0;2mB/Esc^[[0m Back ^[[0;2mY/o^[[0m Options ^[[0;2m?^[[0m Help
^[[0;1;35mA/Enter^[[0m Install ^[[0;2mB/Esc^[[0m Back ^[[0;2mY/o^[[0m Change ^[[0;2m?^[[0m Help
=== plan-in-place
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: RetroArch^[[0m
@@ -231,7 +231,7 @@
^[[0;7;35m > Close^[[0m
Details
Options
Change
@@ -247,7 +247,7 @@
^[[0;1;35mA/Enter^[[0m Close ^[[0;2mB/Esc^[[0m Back ^[[0;2mY/o^[[0m Options ^[[0;2m?^[[0m Help
^[[0;1;35mA/Enter^[[0m Close ^[[0;2mB/Esc^[[0m Back ^[[0;2mY/o^[[0m Change ^[[0;2m?^[[0m Help
=== systems
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Choose systems^[[0m
@@ -273,31 +273,81 @@
^[[0;1m ^[[0;1;35m2^[[0;1m of ^[[0;1;35m3^[[0;1m systems: ^[[0;1;35m4^[[0;1m files, ^[[0;1;35m1.0 MB^[[0m
^[[0;1;35mA/Enter^[[0m Tick ^[[0;2mB/Esc^[[0m Done ^[[0;2m?^[[0m Help
=== options
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Options^[[0m
=== change
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Change^[[0m
Each row is an option of the command line, named on the right.
^[[0;1m What to install^[[0m
^[[0;7;35m > Preferred regions: North America, Japan --region^[[0m
Game data: kept --no-game-data
Installed cores only: no (1 found) --installed-cores
Cores: all --core
Parallel downloads: 8 --jobs
Emulators: all --emulator
Game data: kept --no-game-data
^[[0;1m Where^[[0m
BIOS folder: ^[[0;1m~/.config/retroarch/system^[[0m --dest
Copy from: none --from
From a pack: none --from-pack
^[[0;1m For which device^[[0m
Device: every board --target
Installed cores only: no (1 found) --installed-cores
^[[0;1m How^[[0m
Without the internet: no --offline
Parallel downloads: 8 --jobs
^[[0;1m See^[[0m
Preview the file list --dry-run
Show the command line
^[[0;1;35mA/Enter^[[0m Open ^[[0;2mB/Esc^[[0m Back ^[[0;2mLeft/Right^[[0m Set ^[[0;2m?^[[0m Help
=== device
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Device^[[0m
Choose the board, the chip of the device the games run on. Every board fits
any device.
^[[0;7;35m > (x) h700 named by the card^[[0m
( ) bcm2711 rpi4
( ) x86_64
( ) Every board
^[[0;1;35mA/Enter^[[0m Choose ^[[0;2mB/Esc^[[0m Back ^[[0;2m?^[[0m Help
=== emulators
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Emulators^[[0m
Tick the emulators to install for. With none ticked, every emulator's files
are installed.
Filter (/ to type)
[ ] mesen
^[[0;7;35m > [x] pcsx_rearmed^[[0m
None
^[[0;32mDone^[[0m
^[[0;1;35mA/Enter^[[0m Tick ^[[0;2mB/Esc^[[0m Done ^[[0;2m?^[[0m Help
=== regions
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Preferred regions^[[0m
@@ -528,7 +578,7 @@
Up/Down, k/j Move
A/Enter, Start Install
Y, o, Tab Options
Y, o, Tab Change
d Details
B/Esc, Backspace Back
q, Ctrl-C Quit
@@ -562,7 +612,7 @@
Choose systems
Copy the BIOS files from an old card or a folder
Details
Options
Change
Quit
@@ -572,7 +622,7 @@
^[[0;1;35mA/Enter^[[0m Install ^[[0;2mB/Esc^[[0m Back ^[[0;2mY/o^[[0m Options ^[[0;2m?^[[0m Help
^[[0;1;35mA/Enter^[[0m Install ^[[0;2mB/Esc^[[0m Back ^[[0;2mY/o^[[0m Change ^[[0;2m?^[[0m Help
=== games
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Games on this card^[[0m
@@ -661,7 +711,7 @@
Copy the BIOS files from an old card or a folder
Change where
Details
Options
Change
Quit
@@ -672,4 +722,4 @@
^[[0;1;35mA/Enter^[[0m Install ^[[0;2mB/Esc^[[0m Back ^[[0;2mY/o^[[0m Options ^[[0;2m?^[[0m Help
^[[0;1;35mA/Enter^[[0m Install ^[[0;2mB/Esc^[[0m Back ^[[0;2mY/o^[[0m Change ^[[0;2m?^[[0m Help
+40
View File
@@ -0,0 +1,40 @@
RetroBIOS: Device
Choose the board, the chip of the device the games run on. Every board fits any device.
> (x) h700 named by the card
( ) bcm2711 rpi4
( ) x86_64
( ) Every board
A/Enter Choose B/Esc Back ? Help
+12
View File
@@ -0,0 +1,12 @@
RetroBIOS: Device
Choose the board, the chip of the
device the games run on. Every board
fits any device.
> (x) h700 named by the card
( ) bcm2711 rpi4
( ) x86_64
( ) Every board
A Choose B Back ? Help
+15
View File
@@ -0,0 +1,15 @@
RetroBIOS: Device
Choose the board, the chip of the
device the games run on. Every board
fits any device.
> (x) h700 named by the card
( ) bcm2711 rpi4
( ) x86_64
( ) Every board
A Choose B Back ? Help
+24
View File
@@ -0,0 +1,24 @@
RetroBIOS: Device
Choose the board, the chip of the device the games run on. Every board fits
any device.
> (x) h700 named by the card
( ) bcm2711 rpi4
( ) x86_64
( ) Every board
A/Enter Choose B/Esc Back ? Help
+40
View File
@@ -0,0 +1,40 @@
RetroBIOS: Emulators
Tick the emulators to install for. With none ticked, every emulator's files are installed.
Filter (/ to type)
[ ] mesen
> [x] pcsx_rearmed
None
Done
A/Enter Tick B/Esc Done ? Help
+12
View File
@@ -0,0 +1,12 @@
RetroBIOS: Emulators
Tick the emulators to install for.
With none ticked, every emulator's
files are installed.
Filter (/ to type)
[ ] mesen
> [x] pcsx_rearmed
None
Done
A Tick B Done ? Help
+15
View File
@@ -0,0 +1,15 @@
RetroBIOS: Emulators
Tick the emulators to install for.
With none ticked, every emulator's
files are installed.
Filter (/ to type)
[ ] mesen
> [x] pcsx_rearmed
None
Done
A Tick B Done ? Help
+24
View File
@@ -0,0 +1,24 @@
RetroBIOS: Emulators
Tick the emulators to install for. With none ticked, every emulator's files
are installed.
Filter (/ to type)
[ ] mesen
> [x] pcsx_rearmed
None
Done
A/Enter Tick B/Esc Done ? Help
+1 -1
View File
@@ -2,7 +2,7 @@
Up/Down, k/j Move
A/Enter, Start Install
Y, o, Tab Options
Y, o, Tab Change
d Details
B/Esc, Backspace Back
q, Ctrl-C Quit
+1 -1
View File
@@ -2,7 +2,7 @@
Up/Down, k/j Move
A/Enter, Start Install
Y, o, Tab Options
Y, o, Tab Change
d Details
B/Esc, Backspace Back
q, Ctrl-C Quit
+1 -1
View File
@@ -2,7 +2,7 @@
Up/Down, k/j Move
A/Enter, Start Install
Y, o, Tab Options
Y, o, Tab Change
d Details
B/Esc, Backspace Back
q, Ctrl-C Quit
+1 -1
View File
@@ -2,7 +2,7 @@
Up/Down, k/j Move
A/Enter, Start Install
Y, o, Tab Options
Y, o, Tab Change
d Details
B/Esc, Backspace Back
q, Ctrl-C Quit
+2 -2
View File
@@ -7,7 +7,7 @@
Choose systems
Copy the BIOS files from an old card or a folder
Details
Options
Change
Quit
@@ -37,4 +37,4 @@
A/Enter Install B/Esc Back Y/o Options ? Help
A/Enter Install B/Esc Back Y/o Change ? Help
+2 -2
View File
@@ -7,6 +7,6 @@
Choose systems
Copy from an old card or a folder
Details
Options
Change
Quit
A Install B Back Y Options ? Help
A Install B Back Y Change ? Help
+2 -2
View File
@@ -8,8 +8,8 @@
Choose systems
Copy from an old card or a folder
Details
Options
Change
Quit
A Install B Back Y Options ? Help
A Install B Back Y Change ? Help
+2 -2
View File
@@ -7,7 +7,7 @@
Choose systems
Copy the BIOS files from an old card or a folder
Details
Options
Change
Quit
@@ -21,4 +21,4 @@
A/Enter Install B/Esc Back Y/o Options ? Help
A/Enter Install B/Esc Back Y/o Change ? Help
+2 -2
View File
@@ -11,7 +11,7 @@
Choose systems
Copy the BIOS files from an old card or a folder
Details
Options
Change
Quit
@@ -37,4 +37,4 @@
A/Enter Install B/Esc Back Y/o Options ? Help
A/Enter Install B/Esc Back Y/o Change ? Help
+1 -1
View File
@@ -9,4 +9,4 @@
Only what starts: no
Show the games
1-4 of 9
A Install B Back Y Options ? Help
A Install B Back Y Change ? Help
+2 -2
View File
@@ -10,6 +10,6 @@
Choose systems
Copy from an old card or a folder
Details
Options
Change
Quit
A Install B Back Y Options ? Help
A Install B Back Y Change ? Help
+2 -2
View File
@@ -11,7 +11,7 @@
Choose systems
Copy the BIOS files from an old card or a folder
Details
Options
Change
Quit
@@ -21,4 +21,4 @@
A/Enter Install B/Esc Back Y/o Options ? Help
A/Enter Install B/Esc Back Y/o Change ? Help
+2 -2
View File
@@ -5,7 +5,7 @@
> Close
Details
Options
Change
@@ -37,4 +37,4 @@
A/Enter Close B/Esc Back Y/o Options ? Help
A/Enter Close B/Esc Back Y/o Change ? Help
+2 -2
View File
@@ -6,7 +6,7 @@
> Close
Details
Options
Change
A Close B Back Y Options ? Help
A Close B Back Y Change ? Help
+2 -2
View File
@@ -6,10 +6,10 @@
> Close
Details
Options
Change
A Close B Back Y Options ? Help
A Close B Back Y Change ? Help
+2 -2
View File
@@ -5,7 +5,7 @@
> Close
Details
Options
Change
@@ -21,4 +21,4 @@
A/Enter Close B/Esc Back Y/o Options ? Help
A/Enter Close B/Esc Back Y/o Change ? Help
+2 -2
View File
@@ -10,7 +10,7 @@
Copy the BIOS files from an old card or a folder
Change where
Details
Options
Change
Quit
@@ -37,4 +37,4 @@
A/Enter Install B/Esc Back Y/o Options ? Help
A/Enter Install B/Esc Back Y/o Change ? Help
+1 -1
View File
@@ -9,4 +9,4 @@
Choose systems
Copy from an old card or a folder
1-4 of 8
A Install B Back Y Options ? Help
A Install B Back Y Change ? Help
+2 -2
View File
@@ -10,6 +10,6 @@
Copy from an old card or a folder
Change where
Details
Options
Change
Quit
A Install B Back Y Options ? Help
A Install B Back Y Change ? Help
+2 -2
View File
@@ -10,7 +10,7 @@
Copy the BIOS files from an old card or a folder
Change where
Details
Options
Change
Quit
@@ -21,4 +21,4 @@
A/Enter Install B/Esc Back Y/o Options ? Help
A/Enter Install B/Esc Back Y/o Change ? Help
+164 -56
View File
@@ -411,9 +411,9 @@
Choose systems
Copy from an old card or a folder
Details
Options
Change
Quit
A Install B Back Y Options
A Install B Back Y Change
=== plan 40x15
RetroBIOS: RetroArch
@@ -425,11 +425,11 @@
Choose systems
Copy from an old card or a folder
Details
Options
Change
Quit
A Install B Back Y Options
A Install B Back Y Change
=== plan 80x24
RetroBIOS: RetroArch
@@ -440,7 +440,7 @@
Choose systems
Copy the BIOS files from an old card or a folder
Details
Options
Change
Quit
@@ -454,7 +454,7 @@
A Install B Back Y Options
A Install B Back Y Change
=== plan-in-place 40x12
RetroBIOS: RetroArch
@@ -464,10 +464,10 @@
> Close
Details
Options
Change
A Close B Back Y Options
A Close B Back Y Change
=== plan-in-place 40x15
RetroBIOS: RetroArch
@@ -477,13 +477,13 @@
> Close
Details
Options
Change
A Close B Back Y Options
A Close B Back Y Change
=== plan-in-place 80x24
RetroBIOS: RetroArch
@@ -492,7 +492,7 @@
> Close
Details
Options
Change
@@ -508,7 +508,7 @@
A Close B Back Y Options
A Close B Back Y Change
=== systems 40x12
RetroBIOS: Choose systems
@@ -563,60 +563,168 @@
2 of 3 systems: 4 files, 1.0 MB
A Tick B Done
=== options 40x12
RetroBIOS: Options
=== change 40x12
RetroBIOS: Change
What to install
> Preferred regions: North America, Ja
Game data: kept
Installed cores only: no (1 found)
Cores: all
Parallel downloads: 8
Emulators: all
Game data: kept
Where
BIOS folder: ~/.config...ch/system
Copy from: none
Preview the file list
Show the command line
1-8 of 18
A Open B Back <> Set
=== options 40x15
RetroBIOS: Options
=== change 40x15
RetroBIOS: Change
What to install
> Preferred regions: North America, Ja
Game data: kept
Installed cores only: no (1 found)
Cores: all
Parallel downloads: 8
Emulators: all
Game data: kept
Where
BIOS folder: ~/.config...ch/system
Copy from: none
Preview the file list
Show the command line
Sets --region
From a pack: none
For which device
Device: every board
1-11 of 18
A Open B Back <> Set
=== options 80x24
RetroBIOS: Options
Each row is an option of the command line, named on the right.
=== change 80x24
RetroBIOS: Change
What to install
> Preferred regions: North America, Japan --region
Game data: kept --no-game-data
Installed cores only: no (1 found) --installed-cores
Cores: all --core
Parallel downloads: 8 --jobs
Emulators: all --emulator
Game data: kept --no-game-data
Where
BIOS folder: ~/.config/retroarch/system --dest
Copy from: none --from
From a pack: none --from-pack
For which device
Device: every board --target
Installed cores only: no (1 found) --installed-cores
How
Without the internet: no --offline
Parallel downloads: 8 --jobs
See
Preview the file list --dry-run
Show the command line
A Open B Back Left/Right Set
=== device 40x12
RetroBIOS: Device
Choose the board, the chip of the
device the games run on. Every board
fits any device.
> (x) h700 named by the card
( ) bcm2711 rpi4
( ) x86_64
( ) Every board
A Choose B Back
=== device 40x15
RetroBIOS: Device
Choose the board, the chip of the
device the games run on. Every board
fits any device.
> (x) h700 named by the card
( ) bcm2711 rpi4
( ) x86_64
( ) Every board
A Choose B Back
=== device 80x24
RetroBIOS: Device
Choose the board, the chip of the device the games run on. Every board fits
any device.
> (x) h700 named by the card
( ) bcm2711 rpi4
( ) x86_64
( ) Every board
A Choose B Back
=== emulators 40x12
RetroBIOS: Emulators
Tick the emulators to install for.
With none ticked, every emulator's
files are installed.
Filter (with a keyboard)
[ ] mesen
> [x] pcsx_rearmed
None
Done
A Tick B Done
=== emulators 40x15
RetroBIOS: Emulators
Tick the emulators to install for.
With none ticked, every emulator's
files are installed.
Filter (with a keyboard)
[ ] mesen
> [x] pcsx_rearmed
None
Done
A Tick B Done
=== emulators 80x24
RetroBIOS: Emulators
Tick the emulators to install for. With none ticked, every emulator's files
are installed.
Filter (with a keyboard)
[ ] mesen
> [x] pcsx_rearmed
None
Done
A Tick B Done
=== regions 40x12
RetroBIOS: Preferred regions
@@ -976,7 +1084,7 @@
D-pad, Up/Down Move
A, Start, Enter Install
Y, Tab, o Options
Y, Tab, o Change
d Details
B, Select, Esc Back
q, Ctrl-C Quit
@@ -989,7 +1097,7 @@
D-pad, Up/Down Move
A, Start, Enter Install
Y, Tab, o Options
Y, Tab, o Change
d Details
B, Select, Esc Back
q, Ctrl-C Quit
@@ -1005,7 +1113,7 @@
D-pad, Up/Down Move
A, Start, Enter Install
Y, Tab, o Options
Y, Tab, o Change
d Details
B, Select, Esc Back
q, Ctrl-C Quit
@@ -1037,7 +1145,7 @@
Only what starts: no
Show the games
1-4 of 9
A Install B Back Y Options
A Install B Back Y Change
=== plan-games 40x15
RetroBIOS: RetroArch
@@ -1051,9 +1159,9 @@
Choose systems
Copy from an old card or a folder
Details
Options
Change
Quit
A Install B Back Y Options
A Install B Back Y Change
=== plan-games 80x24
RetroBIOS: RetroArch
@@ -1068,7 +1176,7 @@
Choose systems
Copy the BIOS files from an old card or a folder
Details
Options
Change
Quit
@@ -1078,7 +1186,7 @@
A Install B Back Y Options
A Install B Back Y Change
=== games 80x24
RetroBIOS: Games on this card
@@ -1195,7 +1303,7 @@
Choose systems
Copy from an old card or a folder
1-4 of 8
A Install B Back Y Options
A Install B Back Y Change
=== plan-record 40x15
RetroBIOS: RetroArch
@@ -1209,9 +1317,9 @@
Copy from an old card or a folder
Change where
Details
Options
Change
Quit
A Install B Back Y Options
A Install B Back Y Change
=== plan-record 80x24
RetroBIOS: RetroArch
@@ -1225,7 +1333,7 @@
Copy the BIOS files from an old card or a folder
Change where
Details
Options
Change
Quit
@@ -1236,4 +1344,4 @@
A Install B Back Y Options
A Install B Back Y Change
+164 -56
View File
@@ -411,9 +411,9 @@
Choose systems
Copy from an old card or a folder
Details
Options
Change
Quit
A Install B Back Y Options
A Install B Back Y Change
=== plan 40x15
RetroBIOS: RetroArch
@@ -425,11 +425,11 @@
Choose systems
Copy from an old card or a folder
Details
Options
Change
Quit
A Install B Back Y Options
A Install B Back Y Change
=== plan 80x24
RetroBIOS: RetroArch
@@ -440,7 +440,7 @@
Choose systems
Copy the BIOS files from an old card or a folder
Details
Options
Change
Quit
@@ -454,7 +454,7 @@
A Install B Back Y Options
A Install B Back Y Change
=== plan-in-place 40x12
RetroBIOS: RetroArch
@@ -464,10 +464,10 @@
> Close
Details
Options
Change
A Close B Back Y Options
A Close B Back Y Change
=== plan-in-place 40x15
RetroBIOS: RetroArch
@@ -477,13 +477,13 @@
> Close
Details
Options
Change
A Close B Back Y Options
A Close B Back Y Change
=== plan-in-place 80x24
RetroBIOS: RetroArch
@@ -492,7 +492,7 @@
> Close
Details
Options
Change
@@ -508,7 +508,7 @@
A Close B Back Y Options
A Close B Back Y Change
=== systems 40x12
RetroBIOS: Choose systems
@@ -563,60 +563,168 @@
2 of 3 systems: 4 files, 1.0 MB
A Tick B Done
=== options 40x12
RetroBIOS: Options
=== change 40x12
RetroBIOS: Change
What to install
> Preferred regions: North America, Ja
Game data: kept
Installed cores only: no (1 found)
Cores: all
Parallel downloads: 8
Emulators: all
Game data: kept
Where
BIOS folder: ~/.config...ch/system
Copy from: none
Preview the file list
Show the command line
1-8 of 18
A Open B Back <> Set
=== options 40x15
RetroBIOS: Options
=== change 40x15
RetroBIOS: Change
What to install
> Preferred regions: North America, Ja
Game data: kept
Installed cores only: no (1 found)
Cores: all
Parallel downloads: 8
Emulators: all
Game data: kept
Where
BIOS folder: ~/.config...ch/system
Copy from: none
Preview the file list
Show the command line
Sets --region
From a pack: none
For which device
Device: every board
1-11 of 18
A Open B Back <> Set
=== options 80x24
RetroBIOS: Options
Each row is an option of the command line, named on the right.
=== change 80x24
RetroBIOS: Change
What to install
> Preferred regions: North America, Japan --region
Game data: kept --no-game-data
Installed cores only: no (1 found) --installed-cores
Cores: all --core
Parallel downloads: 8 --jobs
Emulators: all --emulator
Game data: kept --no-game-data
Where
BIOS folder: ~/.config/retroarch/system --dest
Copy from: none --from
From a pack: none --from-pack
For which device
Device: every board --target
Installed cores only: no (1 found) --installed-cores
How
Without the internet: no --offline
Parallel downloads: 8 --jobs
See
Preview the file list --dry-run
Show the command line
A Open B Back Left/Right Set
=== device 40x12
RetroBIOS: Device
Choose the board, the chip of the
device the games run on. Every board
fits any device.
> (x) h700 named by the card
( ) bcm2711 rpi4
( ) x86_64
( ) Every board
A Choose B Back
=== device 40x15
RetroBIOS: Device
Choose the board, the chip of the
device the games run on. Every board
fits any device.
> (x) h700 named by the card
( ) bcm2711 rpi4
( ) x86_64
( ) Every board
A Choose B Back
=== device 80x24
RetroBIOS: Device
Choose the board, the chip of the device the games run on. Every board fits
any device.
> (x) h700 named by the card
( ) bcm2711 rpi4
( ) x86_64
( ) Every board
A Choose B Back
=== emulators 40x12
RetroBIOS: Emulators
Tick the emulators to install for.
With none ticked, every emulator's
files are installed.
Filter (with a keyboard)
[ ] mesen
> [x] pcsx_rearmed
None
Done
A Tick B Done
=== emulators 40x15
RetroBIOS: Emulators
Tick the emulators to install for.
With none ticked, every emulator's
files are installed.
Filter (with a keyboard)
[ ] mesen
> [x] pcsx_rearmed
None
Done
A Tick B Done
=== emulators 80x24
RetroBIOS: Emulators
Tick the emulators to install for. With none ticked, every emulator's files
are installed.
Filter (with a keyboard)
[ ] mesen
> [x] pcsx_rearmed
None
Done
A Tick B Done
=== regions 40x12
RetroBIOS: Preferred regions
@@ -976,7 +1084,7 @@
D-pad, Up/Down Move
A, Start, Enter Install
Y, Tab, o Options
Y, Tab, o Change
d Details
B, Select, Esc Back
q, Ctrl-C Quit
@@ -989,7 +1097,7 @@
D-pad, Up/Down Move
A, Start, Enter Install
Y, Tab, o Options
Y, Tab, o Change
d Details
B, Select, Esc Back
q, Ctrl-C Quit
@@ -1005,7 +1113,7 @@
D-pad, Up/Down Move
A, Start, Enter Install
Y, Tab, o Options
Y, Tab, o Change
d Details
B, Select, Esc Back
q, Ctrl-C Quit
@@ -1037,7 +1145,7 @@
Only what starts: no
Show the games
1-4 of 9
A Install B Back Y Options
A Install B Back Y Change
=== plan-games 40x15
RetroBIOS: RetroArch
@@ -1051,9 +1159,9 @@
Choose systems
Copy from an old card or a folder
Details
Options
Change
Quit
A Install B Back Y Options
A Install B Back Y Change
=== plan-games 80x24
RetroBIOS: RetroArch
@@ -1068,7 +1176,7 @@
Choose systems
Copy the BIOS files from an old card or a folder
Details
Options
Change
Quit
@@ -1078,7 +1186,7 @@
A Install B Back Y Options
A Install B Back Y Change
=== games 80x24
RetroBIOS: Games on this card
@@ -1195,7 +1303,7 @@
Choose systems
Copy from an old card or a folder
1-4 of 8
A Install B Back Y Options
A Install B Back Y Change
=== plan-record 40x15
RetroBIOS: RetroArch
@@ -1209,9 +1317,9 @@
Copy from an old card or a folder
Change where
Details
Options
Change
Quit
A Install B Back Y Options
A Install B Back Y Change
=== plan-record 80x24
RetroBIOS: RetroArch
@@ -1225,7 +1333,7 @@
Copy the BIOS files from an old card or a folder
Change where
Details
Options
Change
Quit
@@ -1236,4 +1344,4 @@
A Install B Back Y Options
A Install B Back Y Change
+164 -56
View File
@@ -411,9 +411,9 @@
Choose systems
Copy from an old card or a folder
Details
Options
Change
Quit
A Install B Back Y Options
A Install B Back Y Change
=== plan 40x15
RetroBIOS: RetroArch
@@ -425,11 +425,11 @@
Choose systems
Copy from an old card or a folder
Details
Options
Change
Quit
A Install B Back Y Options
A Install B Back Y Change
=== plan 80x24
RetroBIOS: RetroArch
@@ -440,7 +440,7 @@
Choose systems
Copy the BIOS files from an old card or a folder
Details
Options
Change
Quit
@@ -454,7 +454,7 @@
A Install B Back Y Options
A Install B Back Y Change
=== plan-in-place 40x12
RetroBIOS: RetroArch
@@ -464,10 +464,10 @@
> Close
Details
Options
Change
A Close B Back Y Options
A Close B Back Y Change
=== plan-in-place 40x15
RetroBIOS: RetroArch
@@ -477,13 +477,13 @@
> Close
Details
Options
Change
A Close B Back Y Options
A Close B Back Y Change
=== plan-in-place 80x24
RetroBIOS: RetroArch
@@ -492,7 +492,7 @@
> Close
Details
Options
Change
@@ -508,7 +508,7 @@
A Close B Back Y Options
A Close B Back Y Change
=== systems 40x12
RetroBIOS: Choose systems
@@ -563,60 +563,168 @@
2 of 3 systems: 4 files, 1.0 MB
A Tick B Done
=== options 40x12
RetroBIOS: Options
=== change 40x12
RetroBIOS: Change
What to install
> Preferred regions: North America, Ja
Game data: kept
Installed cores only: no (1 found)
Cores: all
Parallel downloads: 8
Emulators: all
Game data: kept
Where
BIOS folder: ~/.config...ch/system
Copy from: none
Preview the file list
Show the command line
1-8 of 18
A Open B Back <> Set
=== options 40x15
RetroBIOS: Options
=== change 40x15
RetroBIOS: Change
What to install
> Preferred regions: North America, Ja
Game data: kept
Installed cores only: no (1 found)
Cores: all
Parallel downloads: 8
Emulators: all
Game data: kept
Where
BIOS folder: ~/.config...ch/system
Copy from: none
Preview the file list
Show the command line
Sets --region
From a pack: none
For which device
Device: every board
1-11 of 18
A Open B Back <> Set
=== options 80x24
RetroBIOS: Options
Each row is an option of the command line, named on the right.
=== change 80x24
RetroBIOS: Change
What to install
> Preferred regions: North America, Japan --region
Game data: kept --no-game-data
Installed cores only: no (1 found) --installed-cores
Cores: all --core
Parallel downloads: 8 --jobs
Emulators: all --emulator
Game data: kept --no-game-data
Where
BIOS folder: ~/.config/retroarch/system --dest
Copy from: none --from
From a pack: none --from-pack
For which device
Device: every board --target
Installed cores only: no (1 found) --installed-cores
How
Without the internet: no --offline
Parallel downloads: 8 --jobs
See
Preview the file list --dry-run
Show the command line
A Open B Back Left/Right Set
=== device 40x12
RetroBIOS: Device
Choose the board, the chip of the
device the games run on. Every board
fits any device.
> (x) h700 named by the card
( ) bcm2711 rpi4
( ) x86_64
( ) Every board
A Choose B Back
=== device 40x15
RetroBIOS: Device
Choose the board, the chip of the
device the games run on. Every board
fits any device.
> (x) h700 named by the card
( ) bcm2711 rpi4
( ) x86_64
( ) Every board
A Choose B Back
=== device 80x24
RetroBIOS: Device
Choose the board, the chip of the device the games run on. Every board fits
any device.
> (x) h700 named by the card
( ) bcm2711 rpi4
( ) x86_64
( ) Every board
A Choose B Back
=== emulators 40x12
RetroBIOS: Emulators
Tick the emulators to install for.
With none ticked, every emulator's
files are installed.
Filter (with a keyboard)
[ ] mesen
> [x] pcsx_rearmed
None
Done
A Tick B Done
=== emulators 40x15
RetroBIOS: Emulators
Tick the emulators to install for.
With none ticked, every emulator's
files are installed.
Filter (with a keyboard)
[ ] mesen
> [x] pcsx_rearmed
None
Done
A Tick B Done
=== emulators 80x24
RetroBIOS: Emulators
Tick the emulators to install for. With none ticked, every emulator's files
are installed.
Filter (with a keyboard)
[ ] mesen
> [x] pcsx_rearmed
None
Done
A Tick B Done
=== regions 40x12
RetroBIOS: Preferred regions
@@ -976,7 +1084,7 @@
D-pad, Up/Down Move
A, Start, Enter Install
Y, Tab, o Options
Y, Tab, o Change
d Details
B, Select, Esc Back
q, Ctrl-C Quit
@@ -989,7 +1097,7 @@
D-pad, Up/Down Move
A, Start, Enter Install
Y, Tab, o Options
Y, Tab, o Change
d Details
B, Select, Esc Back
q, Ctrl-C Quit
@@ -1005,7 +1113,7 @@
D-pad, Up/Down Move
A, Start, Enter Install
Y, Tab, o Options
Y, Tab, o Change
d Details
B, Select, Esc Back
q, Ctrl-C Quit
@@ -1037,7 +1145,7 @@
Only what starts: no
Show the games
1-4 of 9
A Install B Back Y Options
A Install B Back Y Change
=== plan-games 40x15
RetroBIOS: RetroArch
@@ -1051,9 +1159,9 @@
Choose systems
Copy from an old card or a folder
Details
Options
Change
Quit
A Install B Back Y Options
A Install B Back Y Change
=== plan-games 80x24
RetroBIOS: RetroArch
@@ -1068,7 +1176,7 @@
Choose systems
Copy the BIOS files from an old card or a folder
Details
Options
Change
Quit
@@ -1078,7 +1186,7 @@
A Install B Back Y Options
A Install B Back Y Change
=== games 80x24
RetroBIOS: Games on this card
@@ -1195,7 +1303,7 @@
Choose systems
Copy from an old card or a folder
1-4 of 8
A Install B Back Y Options
A Install B Back Y Change
=== plan-record 40x15
RetroBIOS: RetroArch
@@ -1209,9 +1317,9 @@
Copy from an old card or a folder
Change where
Details
Options
Change
Quit
A Install B Back Y Options
A Install B Back Y Change
=== plan-record 80x24
RetroBIOS: RetroArch
@@ -1225,7 +1333,7 @@
Copy the BIOS files from an old card or a folder
Change where
Details
Options
Change
Quit
@@ -1236,4 +1344,4 @@
A Install B Back Y Options
A Install B Back Y Change
+164 -56
View File
@@ -386,9 +386,9 @@
Choose systems
Copy from an old card or a folder
Details
Options
Change
Quit
Enter Install Esc Back o Options
Enter Install Esc Back o Change
=== plan 40x15
RetroBIOS: RetroArch
@@ -400,11 +400,11 @@
Choose systems
Copy from an old card or a folder
Details
Options
Change
Quit
Enter Install Esc Back o Options
Enter Install Esc Back o Change
=== plan 80x24
RetroBIOS: RetroArch
@@ -415,7 +415,7 @@
Choose systems
Copy the BIOS files from an old card or a folder
Details
Options
Change
Quit
@@ -429,7 +429,7 @@
Enter Install Esc Back o Options ? Help
Enter Install Esc Back o Change ? Help
=== plan-in-place 40x12
RetroBIOS: RetroArch
@@ -439,10 +439,10 @@
> Close
Details
Options
Change
Enter Close Esc Back o Options
Enter Close Esc Back o Change
=== plan-in-place 40x15
RetroBIOS: RetroArch
@@ -452,13 +452,13 @@
> Close
Details
Options
Change
Enter Close Esc Back o Options
Enter Close Esc Back o Change
=== plan-in-place 80x24
RetroBIOS: RetroArch
@@ -467,7 +467,7 @@
> Close
Details
Options
Change
@@ -483,7 +483,7 @@
Enter Close Esc Back o Options ? Help
Enter Close Esc Back o Change ? Help
=== systems 40x12
RetroBIOS: Choose systems
@@ -538,60 +538,168 @@
2 of 3 systems: 4 files, 1.0 MB
Enter Tick Esc Done ? Help
=== options 40x12
RetroBIOS: Options
=== change 40x12
RetroBIOS: Change
What to install
> Preferred regions: North America, Ja
Game data: kept
Installed cores only: no (1 found)
Cores: all
Parallel downloads: 8
Emulators: all
Game data: kept
Where
BIOS folder: ~/.config...ch/system
Copy from: none
Preview the file list
Show the command line
1-8 of 18
Enter Open Esc Back <> Set ? Help
=== options 40x15
RetroBIOS: Options
=== change 40x15
RetroBIOS: Change
What to install
> Preferred regions: North America, Ja
Game data: kept
Installed cores only: no (1 found)
Cores: all
Parallel downloads: 8
Emulators: all
Game data: kept
Where
BIOS folder: ~/.config...ch/system
Copy from: none
Preview the file list
Show the command line
Sets --region
From a pack: none
For which device
Device: every board
1-11 of 18
Enter Open Esc Back <> Set ? Help
=== options 80x24
RetroBIOS: Options
Each row is an option of the command line, named on the right.
=== change 80x24
RetroBIOS: Change
What to install
> Preferred regions: North America, Japan --region
Game data: kept --no-game-data
Installed cores only: no (1 found) --installed-cores
Cores: all --core
Parallel downloads: 8 --jobs
Emulators: all --emulator
Game data: kept --no-game-data
Where
BIOS folder: ~/.config/retroarch/system --dest
Copy from: none --from
From a pack: none --from-pack
For which device
Device: every board --target
Installed cores only: no (1 found) --installed-cores
How
Without the internet: no --offline
Parallel downloads: 8 --jobs
See
Preview the file list --dry-run
Show the command line
Enter Open Esc Back Left/Right Set ? Help
=== device 40x12
RetroBIOS: Device
Choose the board, the chip of the
device the games run on. Every board
fits any device.
> (x) h700 named by the card
( ) bcm2711 rpi4
( ) x86_64
( ) Every board
Enter Choose Esc Back ? Help
=== device 40x15
RetroBIOS: Device
Choose the board, the chip of the
device the games run on. Every board
fits any device.
> (x) h700 named by the card
( ) bcm2711 rpi4
( ) x86_64
( ) Every board
Enter Choose Esc Back ? Help
=== device 80x24
RetroBIOS: Device
Choose the board, the chip of the device the games run on. Every board fits
any device.
> (x) h700 named by the card
( ) bcm2711 rpi4
( ) x86_64
( ) Every board
Enter Choose Esc Back ? Help
=== emulators 40x12
RetroBIOS: Emulators
Tick the emulators to install for.
With none ticked, every emulator's
files are installed.
Filter (/ to type)
[ ] mesen
> [x] pcsx_rearmed
None
Done
Enter Tick Esc Done ? Help
=== emulators 40x15
RetroBIOS: Emulators
Tick the emulators to install for.
With none ticked, every emulator's
files are installed.
Filter (/ to type)
[ ] mesen
> [x] pcsx_rearmed
None
Done
Enter Tick Esc Done ? Help
=== emulators 80x24
RetroBIOS: Emulators
Tick the emulators to install for. With none ticked, every emulator's files
are installed.
Filter (/ to type)
[ ] mesen
> [x] pcsx_rearmed
None
Done
Enter Tick Esc Done ? Help
=== regions 40x12
RetroBIOS: Preferred regions
@@ -1083,7 +1191,7 @@
Up/Down, k/j Move
Enter Install
o, Tab Options
o, Tab Change
d Details
Esc, Backspace Back
q, Ctrl-C Quit
@@ -1096,7 +1204,7 @@
Up/Down, k/j Move
Enter Install
o, Tab Options
o, Tab Change
d Details
Esc, Backspace Back
q, Ctrl-C Quit
@@ -1112,7 +1220,7 @@
Up/Down, k/j Move
Enter Install
o, Tab Options
o, Tab Change
d Details
Esc, Backspace Back
q, Ctrl-C Quit
@@ -1144,7 +1252,7 @@
Only what starts: no
Show the games
1-4 of 9
Enter Install Esc Back o Options
Enter Install Esc Back o Change
=== plan-games 40x15
RetroBIOS: RetroArch
@@ -1158,9 +1266,9 @@
Choose systems
Copy from an old card or a folder
Details
Options
Change
Quit
Enter Install Esc Back o Options
Enter Install Esc Back o Change
=== plan-games 80x24
RetroBIOS: RetroArch
@@ -1175,7 +1283,7 @@
Choose systems
Copy the BIOS files from an old card or a folder
Details
Options
Change
Quit
@@ -1185,7 +1293,7 @@
Enter Install Esc Back o Options ? Help
Enter Install Esc Back o Change ? Help
=== games 40x12
RetroBIOS: Games on this card
@@ -1360,7 +1468,7 @@
Choose systems
Copy from an old card or a folder
1-4 of 8
Enter Install Esc Back o Options
Enter Install Esc Back o Change
=== plan-record 40x15
RetroBIOS: RetroArch
@@ -1374,9 +1482,9 @@
Copy from an old card or a folder
Change where
Details
Options
Change
Quit
Enter Install Esc Back o Options
Enter Install Esc Back o Change
=== plan-record 80x24
RetroBIOS: RetroArch
@@ -1390,7 +1498,7 @@
Copy the BIOS files from an old card or a folder
Change where
Details
Options
Change
Quit
@@ -1401,4 +1509,4 @@
Enter Install Esc Back o Options ? Help
Enter Install Esc Back o Change ? Help
+164 -56
View File
@@ -440,9 +440,9 @@
Choose systems
Copy from an old card or a folder
Details
Options
Change
Quit
A Install R2 Back L2 Options
A Install R2 Back L2 Change
=== plan 40x15
RetroBIOS: RetroArch
@@ -454,11 +454,11 @@
Choose systems
Copy from an old card or a folder
Details
Options
Change
Quit
A Install R2 Back L2 Options
A Install R2 Back L2 Change
=== plan 80x24
RetroBIOS: RetroArch
@@ -469,7 +469,7 @@
Choose systems
Copy the BIOS files from an old card or a folder
Details
Options
Change
Quit
@@ -483,7 +483,7 @@
A Install R2 Back L2 Options
A Install R2 Back L2 Change
=== plan-in-place 40x12
RetroBIOS: RetroArch
@@ -493,10 +493,10 @@
> Close
Details
Options
Change
A Close R2 Back L2 Options
A Close R2 Back L2 Change
=== plan-in-place 40x15
RetroBIOS: RetroArch
@@ -506,13 +506,13 @@
> Close
Details
Options
Change
A Close R2 Back L2 Options
A Close R2 Back L2 Change
=== plan-in-place 80x24
RetroBIOS: RetroArch
@@ -521,7 +521,7 @@
> Close
Details
Options
Change
@@ -537,7 +537,7 @@
A Close R2 Back L2 Options
A Close R2 Back L2 Change
=== systems 40x12
RetroBIOS: Choose systems
@@ -592,60 +592,168 @@
2 of 3 systems: 4 files, 1.0 MB
A Tick R2 Done
=== options 40x12
RetroBIOS: Options
=== change 40x12
RetroBIOS: Change
What to install
> Preferred regions: North America, Ja
Game data: kept
Installed cores only: no (1 found)
Cores: all
Parallel downloads: 8
Emulators: all
Game data: kept
Where
BIOS folder: ~/.config...ch/system
Copy from: none
Preview the file list
Show the command line
1-8 of 18
A Open R2 Back <> Set
=== options 40x15
RetroBIOS: Options
=== change 40x15
RetroBIOS: Change
What to install
> Preferred regions: North America, Ja
Game data: kept
Installed cores only: no (1 found)
Cores: all
Parallel downloads: 8
Emulators: all
Game data: kept
Where
BIOS folder: ~/.config...ch/system
Copy from: none
Preview the file list
Show the command line
Sets --region
From a pack: none
For which device
Device: every board
1-11 of 18
A Open R2 Back <> Set
=== options 80x24
RetroBIOS: Options
Each row is an option of the command line, named on the right.
=== change 80x24
RetroBIOS: Change
What to install
> Preferred regions: North America, Japan --region
Game data: kept --no-game-data
Installed cores only: no (1 found) --installed-cores
Cores: all --core
Parallel downloads: 8 --jobs
Emulators: all --emulator
Game data: kept --no-game-data
Where
BIOS folder: ~/.config/retroarch/system --dest
Copy from: none --from
From a pack: none --from-pack
For which device
Device: every board --target
Installed cores only: no (1 found) --installed-cores
How
Without the internet: no --offline
Parallel downloads: 8 --jobs
See
Preview the file list --dry-run
Show the command line
A Open R2 Back Left/Right Set
=== device 40x12
RetroBIOS: Device
Choose the board, the chip of the
device the games run on. Every board
fits any device.
> (x) h700 named by the card
( ) bcm2711 rpi4
( ) x86_64
( ) Every board
A Choose R2 Back
=== device 40x15
RetroBIOS: Device
Choose the board, the chip of the
device the games run on. Every board
fits any device.
> (x) h700 named by the card
( ) bcm2711 rpi4
( ) x86_64
( ) Every board
A Choose R2 Back
=== device 80x24
RetroBIOS: Device
Choose the board, the chip of the device the games run on. Every board fits
any device.
> (x) h700 named by the card
( ) bcm2711 rpi4
( ) x86_64
( ) Every board
A Choose R2 Back
=== emulators 40x12
RetroBIOS: Emulators
Tick the emulators to install for.
With none ticked, every emulator's
files are installed.
Filter (with a keyboard)
[ ] mesen
> [x] pcsx_rearmed
None
Done
A Tick R2 Done
=== emulators 40x15
RetroBIOS: Emulators
Tick the emulators to install for.
With none ticked, every emulator's
files are installed.
Filter (with a keyboard)
[ ] mesen
> [x] pcsx_rearmed
None
Done
A Tick R2 Done
=== emulators 80x24
RetroBIOS: Emulators
Tick the emulators to install for. With none ticked, every emulator's files
are installed.
Filter (with a keyboard)
[ ] mesen
> [x] pcsx_rearmed
None
Done
A Tick R2 Done
=== regions 40x12
RetroBIOS: Preferred regions
@@ -1079,7 +1187,7 @@
D-pad, Up/Down Move
A, Start, Enter Install
L2, Tab, o Options
L2, Tab, o Change
d Details
R2, Esc, Backspace Back
q, Ctrl-C Quit
@@ -1092,7 +1200,7 @@
D-pad, Up/Down Move
A, Start, Enter Install
L2, Tab, o Options
L2, Tab, o Change
d Details
R2, Esc, Backspace Back
q, Ctrl-C Quit
@@ -1108,7 +1216,7 @@
D-pad, Up/Down Move
A, Start, Enter Install
L2, Tab, o Options
L2, Tab, o Change
d Details
R2, Esc, Backspace Back
q, Ctrl-C Quit
@@ -1140,7 +1248,7 @@
Only what starts: no
Show the games
1-4 of 9
A Install R2 Back L2 Options
A Install R2 Back L2 Change
=== plan-games 40x15
RetroBIOS: RetroArch
@@ -1154,9 +1262,9 @@
Choose systems
Copy from an old card or a folder
Details
Options
Change
Quit
A Install R2 Back L2 Options
A Install R2 Back L2 Change
=== plan-games 80x24
RetroBIOS: RetroArch
@@ -1171,7 +1279,7 @@
Choose systems
Copy the BIOS files from an old card or a folder
Details
Options
Change
Quit
@@ -1181,7 +1289,7 @@
A Install R2 Back L2 Options
A Install R2 Back L2 Change
=== games 80x24
RetroBIOS: Games on this card
@@ -1298,7 +1406,7 @@
Choose systems
Copy from an old card or a folder
1-4 of 8
A Install R2 Back L2 Options
A Install R2 Back L2 Change
=== plan-record 40x15
RetroBIOS: RetroArch
@@ -1312,9 +1420,9 @@
Copy from an old card or a folder
Change where
Details
Options
Change
Quit
A Install R2 Back L2 Options
A Install R2 Back L2 Change
=== plan-record 80x24
RetroBIOS: RetroArch
@@ -1328,7 +1436,7 @@
Copy the BIOS files from an old card or a folder
Change where
Details
Options
Change
Quit
@@ -1339,4 +1447,4 @@
A Install R2 Back L2 Options
A Install R2 Back L2 Change
+152 -44
View File
@@ -440,7 +440,7 @@
Choose systems
Copy from an old card or a folder
Details
Options
Change
Quit
Start Install B Back
=== plan 40x15
@@ -454,7 +454,7 @@
Choose systems
Copy from an old card or a folder
Details
Options
Change
Quit
@@ -469,7 +469,7 @@
Choose systems
Copy the BIOS files from an old card or a folder
Details
Options
Change
Quit
@@ -493,7 +493,7 @@
> Close
Details
Options
Change
Start Close B Back
@@ -506,7 +506,7 @@
> Close
Details
Options
Change
@@ -521,7 +521,7 @@
> Close
Details
Options
Change
@@ -592,60 +592,168 @@
2 of 3 systems: 4 files, 1.0 MB
Start Tick B Done
=== options 40x12
RetroBIOS: Options
=== change 40x12
RetroBIOS: Change
What to install
> Preferred regions: North America, Ja
Game data: kept
Installed cores only: no (1 found)
Cores: all
Parallel downloads: 8
Emulators: all
Game data: kept
Where
BIOS folder: ~/.config...ch/system
Copy from: none
Preview the file list
Show the command line
1-8 of 18
Start Open B Back <> Set
=== options 40x15
RetroBIOS: Options
=== change 40x15
RetroBIOS: Change
What to install
> Preferred regions: North America, Ja
Game data: kept
Installed cores only: no (1 found)
Cores: all
Parallel downloads: 8
Emulators: all
Game data: kept
Where
BIOS folder: ~/.config...ch/system
Copy from: none
Preview the file list
Show the command line
Sets --region
From a pack: none
For which device
Device: every board
1-11 of 18
Start Open B Back <> Set
=== options 80x24
RetroBIOS: Options
Each row is an option of the command line, named on the right.
=== change 80x24
RetroBIOS: Change
What to install
> Preferred regions: North America, Japan --region
Game data: kept --no-game-data
Installed cores only: no (1 found) --installed-cores
Cores: all --core
Parallel downloads: 8 --jobs
Emulators: all --emulator
Game data: kept --no-game-data
Where
BIOS folder: ~/.config/retroarch/system --dest
Copy from: none --from
From a pack: none --from-pack
For which device
Device: every board --target
Installed cores only: no (1 found) --installed-cores
How
Without the internet: no --offline
Parallel downloads: 8 --jobs
See
Preview the file list --dry-run
Show the command line
Start Open B Back Left/Right Set
=== device 40x12
RetroBIOS: Device
Choose the board, the chip of the
device the games run on. Every board
fits any device.
> (x) h700 named by the card
( ) bcm2711 rpi4
( ) x86_64
( ) Every board
Start Choose B Back
=== device 40x15
RetroBIOS: Device
Choose the board, the chip of the
device the games run on. Every board
fits any device.
> (x) h700 named by the card
( ) bcm2711 rpi4
( ) x86_64
( ) Every board
Start Choose B Back
=== device 80x24
RetroBIOS: Device
Choose the board, the chip of the device the games run on. Every board fits
any device.
> (x) h700 named by the card
( ) bcm2711 rpi4
( ) x86_64
( ) Every board
Start Choose B Back
=== emulators 40x12
RetroBIOS: Emulators
Tick the emulators to install for.
With none ticked, every emulator's
files are installed.
Filter (Select shows a keyboard)
[ ] mesen
> [x] pcsx_rearmed
None
Done
Start Tick B Done
=== emulators 40x15
RetroBIOS: Emulators
Tick the emulators to install for.
With none ticked, every emulator's
files are installed.
Filter (Select shows a keyboard)
[ ] mesen
> [x] pcsx_rearmed
None
Done
Start Tick B Done
=== emulators 80x24
RetroBIOS: Emulators
Tick the emulators to install for. With none ticked, every emulator's files
are installed.
Filter (Select shows a keyboard)
[ ] mesen
> [x] pcsx_rearmed
None
Done
Start Tick B Done
=== regions 40x12
RetroBIOS: Preferred regions
@@ -1137,7 +1245,7 @@
D-pad, Up/Down Move
Start, Enter Install
o, Tab Options
o, Tab Change
d Details
B, Esc, Backspace Back
q, Ctrl-C Quit
@@ -1150,7 +1258,7 @@
D-pad, Up/Down Move
Start, Enter Install
o, Tab Options
o, Tab Change
d Details
B, Esc, Backspace Back
q, Ctrl-C Quit
@@ -1166,7 +1274,7 @@
D-pad, Up/Down Move
Start, Enter Install
o, Tab Options
o, Tab Change
d Details
B, Esc, Backspace Back
q, Ctrl-C Quit
@@ -1212,7 +1320,7 @@
Choose systems
Copy from an old card or a folder
Details
Options
Change
Quit
Start Install B Back
=== plan-games 80x24
@@ -1229,7 +1337,7 @@
Choose systems
Copy the BIOS files from an old card or a folder
Details
Options
Change
Quit
@@ -1428,7 +1536,7 @@
Copy from an old card or a folder
Change where
Details
Options
Change
Quit
Start Install B Back
=== plan-record 80x24
@@ -1444,7 +1552,7 @@
Copy the BIOS files from an old card or a folder
Change where
Details
Options
Change
Quit
+6 -2
View File
@@ -66,7 +66,11 @@ JOURNEY_WORDS = {
"update": 70,
"one_system": 179,
"one_system_again": 67,
"what_is_missing": 207,
# Change holds every option one level down now (design 4.4): its
# headings and the rows for Emulators, a pack, the device and the
# internet, the intro sentence dropped, 10 words on each of its two
# frames.
"what_is_missing": 227,
# The plan of the setup found comes first now (33 words), the setups
# one Esc away, and the last plan names Change where (2 words).
"another_device": 265,
@@ -319,7 +323,7 @@ class Journeys(unittest.TestCase):
term = self.start(repo)
term.wait("files to download", timeout=40)
self.press(term, "o")
term.wait("Each row is an option")
term.wait("RetroBIOS: Change")
self.press(term, END, UP)
term.wait("> Preview the file list")
self.press(term, "\r")
+667 -24
View File
@@ -450,6 +450,12 @@ class HoldingPack:
return (None, entry)
def option_focus(state: install.TuiState, action: str) -> None:
"""The focus on the Change row doing action: its rows sit under
headings, which no index of the flat list kept."""
state.focus["options"] = [row.action for row in install.tui_rows(state)].index(action)
def press(state: install.TuiState, *pressed) -> list:
effects = []
for key in pressed:
@@ -495,6 +501,7 @@ class Flow(unittest.TestCase):
state = checked_state()
state.passthrough = started.passthrough
state.from_folders = started.from_folders
state.packs = started.packs
for run in ("check", "install"):
argv = install.tui_argv(state, run, "py", "i.py")
for folder in ("old-card", "backup.zip"):
@@ -556,9 +563,12 @@ class Flow(unittest.TestCase):
press(state, "o")
self.assertEqual(state.screen, "options")
rows = install.tui_rows(state)
self.assertEqual([row.right for row in rows], [
"--region", "--no-game-data", "--installed-cores", "--core", "--jobs", "--dest",
"--from", "--dry-run", ""])
# Grouped by what each decides, a heading above each group.
self.assertEqual([row.right or row.label for row in rows], [
"What to install", "--region", "--core", "--emulator", "--no-game-data",
"Where", "--dest", "--from", "--from-pack",
"For which device", "--target", "--installed-cores",
"How", "--offline", "--jobs", "See", "--dry-run", "Show the command line"])
press(state, "enter")
self.assertEqual(state.screen, "regions")
# Ticked in the order of preference, then moved up.
@@ -574,7 +584,10 @@ class Flow(unittest.TestCase):
["[2] Japan", "[1] North America", "None", "Done"])
press(state, "shift-down")
self.assertEqual(state.regions, ["japan", "north-america"])
press(state, "esc", "down", "enter", "down", "right", "down", "down", "right", "right")
# Down passes the headings: Game data, Installed cores only, then
# Parallel downloads.
press(state, "esc", "down", "down", "down", "enter", *["down"] * 5, "right",
"down", "down", "right", "right")
self.assertTrue(state.no_game_data)
self.assertTrue(state.installed_only)
self.assertEqual(state.jobs, 10)
@@ -586,7 +599,7 @@ class Flow(unittest.TestCase):
def test_cores_checklist(self):
state = checked_state()
press(state, "o")
state.focus["options"] = 3
option_focus(state, "cores")
press(state, "enter")
self.assertEqual(state.screen, "cores")
self.assertEqual([row.value for row in install.tui_rows(state)
@@ -610,7 +623,7 @@ class Flow(unittest.TestCase):
def test_preview_is_a_dry_run(self):
state = checked_state()
press(state, "o")
state.focus["options"] = 7
option_focus(state, "preview")
self.assertEqual(press(state, "enter"), [("run", "preview")])
self.assertEqual(install.tui_argv(state, "preview", "py", "i.py")[-2:],
["--dry-run", "--events"])
@@ -805,7 +818,7 @@ class Flow(unittest.TestCase):
def test_events_of_an_abandoned_run_are_ignored(self):
state = checked_state()
press(state, "o")
state.focus["options"] = 7
option_focus(state, "preview")
press(state, "enter")
old = state.run_id
self.assertEqual(press(state, "esc"), [("kill",)])
@@ -983,8 +996,15 @@ def golden_states() -> dict:
states["systems"] = systems
options = checked_state()
options.stack.append("options")
options.focus["options"] = 1
options.regions = ["north-america", "japan"]
states["options"] = options
states["change"] = options
states["device"] = device_state()
emulators = checked_state()
emulators.stack += ["options", "emulators"]
emulators.emulators = ["pcsx_rearmed"]
emulators.focus["emulators"] = 2
states["emulators"] = emulators
regions = checked_state()
regions.stack += ["options", "regions"]
regions.regions = ["north-america"]
@@ -1046,6 +1066,30 @@ def golden_states() -> dict:
return states
# A board list as install/targets/ publishes it, read by Device: the boards
# by the names the list gives them, the device images each one runs.
TARGETS = {"bcm2711": {"cores": ["pcsx_rearmed"], "images": ["rpi4"]},
"h700": {"cores": ["pcsx_rearmed", "mesen"],
"images": ["anbernic-rg35xx-plus", "anbernic-rg40xx-h"]},
"x86_64": {"cores": None}}
def device_state(board: str = "h700") -> install.TuiState:
"""Device opened from Change, the board list in, the card in the reader
naming its board (the check's board event)."""
state = checked_state()
if board:
state.board_seen = ("retroarch", state.dest, board, True, False)
state.stack.append("options")
install.tui_update(state, Key("home"))
rows = install.tui_rows(state)
state.focus["options"] = [row.action for row in rows].index("device")
effects = install.tui_update(state, Key("enter"))
assert effects == [("targets", "retroarch")], effects
install.tui_receive(state, ("targets", "retroarch", TARGETS, ""))
return state
def record_setup(choice: list[str] | None = None) -> dict:
"""A record kept on 3 November of this year: the plan says 3 Nov in
any year it runs."""
@@ -1465,12 +1509,12 @@ class PadRoutes(unittest.TestCase):
def test_the_plan_bar_of_each_route(self):
expected = {
"both": "A/Enter Install B/Esc Back Y/o Options ? Help",
"keys": "Enter Install Esc Back o Options ? Help",
"gptokeyb": "A Install B Back Y Options",
"evmapy": "A Install B Back Y Options",
"both": "A/Enter Install B/Esc Back Y/o Change ? Help",
"keys": "Enter Install Esc Back o Change ? Help",
"gptokeyb": "A Install B Back Y Change",
"evmapy": "A Install B Back Y Change",
"muxterm": "Start Install B Back",
"miyoo": "A Install R2 Back L2 Options",
"miyoo": "A Install R2 Back L2 Change",
}
for route, bar in expected.items():
with self.subTest(route=route):
@@ -2003,7 +2047,7 @@ class TicksBarAndPaths(unittest.TestCase):
ticked = set(state.ticked)
press(state, "esc", "o")
self.assertEqual(state.screen, "options")
state.focus["options"] = 1
option_focus(state, "game_data")
press(state, "enter")
self.assertTrue(state.no_game_data)
effects = press(state, "esc")
@@ -3257,12 +3301,12 @@ class SaveDirectoryLeftOut(unittest.TestCase):
plan = " ".join(" ".join(install.tui_view(state, 120, 40)).split())
# The plan names the row that sets it, the result the option a
# command carries.
self.assertIn(line + "Choose it in Options, Save folder (--save-dir). Its place is "
self.assertIn(line + "Choose it in Change, Save folder (--save-dir). Its place is "
"not known.", plan)
state.stack.append("result")
state.code = 0
state.summary = {**summary, "mode": "install", "installed": 5}
self.assertIn(line + "Choose it in Options, Save folder (--save-dir), next time.",
self.assertIn(line + "Choose it in Change, Save folder (--save-dir), next time.",
install.tui_outcome(state)[1])
@@ -4128,7 +4172,7 @@ class BackTicksAndSaveFolder(unittest.TestCase):
state.manifest = {**state.manifest, "save_directory": {"folder": "saves",
"by_core": True}}
lines = install._unplaced_lines(summary, state)
self.assertIn("Options, Save folder (--save-dir)", lines[0])
self.assertIn("Change, Save folder (--save-dir)", lines[0])
def test_a_size_keeps_its_unit(self):
for width in range(20, 45):
@@ -5095,7 +5139,7 @@ class EndToEnd(unittest.TestCase):
term = self.start("--platform", "knulli", "--dest", str(root))
term.wait("files to download")
term.send("o")
term.wait("Each row is an option")
term.wait("RetroBIOS: Change")
for _step in range(20):
if "> Put RetroBIOS on this card: no" in term.settle():
break
@@ -5231,13 +5275,17 @@ class EndToEnd(unittest.TestCase):
term = self.start("--platform", "retroarch", "--dest", str(repo.dest))
term.wait("6 files to download")
term.send("o")
screen = term.wait("Each row is an option")
screen = term.wait("RetroBIOS: Change")
self.assertIn("--no-game-data", screen)
term.send("\r")
term.wait("Preferred regions")
term.send(DOWN, "\r", "\x1b")
screen = term.wait("Preferred regions: North America")
term.send(DOWN, RIGHT, "\x1b")
for _step in range(8):
if "> Game data: kept" in term.settle():
break
term.send(DOWN)
term.send(RIGHT, "\x1b")
# Back on the plan, the check runs again under the new options.
screen = term.wait("4 files to download")
self.assertIn("> Install", screen)
@@ -10688,7 +10736,7 @@ class MouseEnabled(unittest.TestCase):
self.assertFalse(install.tui_wants_mouse(state, drawn(state, 80, 24)))
# The result takes a tap on its Exit: its text is printed again in
# the terminal once it closes, selected there as anywhere.
for name in ("setup", "platforms", "plan", "systems", "options", "error", "quit",
for name in ("setup", "platforms", "plan", "systems", "change", "error", "quit",
"result"):
with self.subTest(screen=name):
state = states[name]
@@ -10749,6 +10797,13 @@ class MouseOnEveryScreen(unittest.TestCase):
self.assertEqual(lines[line].style == "focus", index == focus)
# The whole width, the text's end or not.
effects = tap(state, cols - 1, line)
if row_list[index].action == "heading":
# A heading names the rows under it: no
# choice, nothing happens.
self.assertEqual(effects, [])
self.assertEqual((state.stack, state.focus),
(base.stack, base.focus))
continue
if row_list[index].action in install.TUI_TICK_ROWS:
# A tick is ticked as Space ticks it, focus
# moved there first.
@@ -13357,7 +13412,7 @@ class TheSettleRunsFromTheFrameShown(unittest.TestCase):
term.wait("> Install")
term.settle()
term.send("o")
term.wait("RetroBIOS: Options")
term.wait("RetroBIOS: Change")
term.settle()
time.sleep(1.0)
col, line = self.bar_entry(term, "Back")
@@ -15119,7 +15174,7 @@ SCREEN_WORDS = {
"folder-card": (52, 52, 50, 50), "browse": (17, 17, 15, 15), "path": (23, 23, 25, 25),
"create": (23, 23, 21, 21), "checking": (18, 18, 17, 17), "plan": (31, 31, 31, 31),
"plan-in-place": (22, 22, 19, 19), "systems": (36, 37, 36, 36),
"options": (40, 42, 59, 59), "regions": (45, 44, 42, 42), "cores": (47, 47, 45, 45),
"regions": (45, 44, 42, 42), "cores": (47, 47, 45, 45),
"preview": (29, 29, 28, 28), "command": (22, 22, 16, 16), "confirm": (22, 22, 20, 20),
"installing": (32, 32, 31, 31), "result": (33, 33, 31, 31), "error": (37, 34, 32, 31),
"quit": (14, 14, 12, 12), "help": (24, 26, 26, 26), "plan-games": (36, 46, 54, 54),
@@ -15129,6 +15184,13 @@ SCREEN_WORDS = {
# press back to the whole list) and Change where (back to the setups,
# the plan having opened on the one found).
"plan-record": (38, 42, 42, 42),
# Change holds every option one level below the plan (design 4.4): the
# rows for Emulators, a pack, the device and the internet, and the five
# headings that group them, the intro sentence they replace dropped.
"change": (32, 42, 72, 72),
# A list of boards and one of emulators, each with the line that says
# what the choice does and the gloss of "board".
"device": (35, 35, 33, 33), "emulators": (29, 29, 27, 27),
}
@@ -15313,7 +15375,7 @@ class WhatToActOnStaysOnTheScreen(unittest.TestCase):
state = checked_state()
state.manifest = {**MANIFEST, "save_directory": {"folder": "saves", "by_core": True}}
state.check_summary = {"skipped": [{"reason": "no_save_directory", "files": 2}]}
self.assertIn("Choose it in Options, Save folder (--save-dir).", self.text(state))
self.assertIn("Choose it in Change, Save folder (--save-dir).", self.text(state))
def test_files_that_could_not_be_read_are_counted_where_no_row_says_so(self):
unread = [{"event": "unreadable", "platform": "retroarch", "folder": "/media/OLD",
@@ -15340,5 +15402,586 @@ class WhatToActOnStaysOnTheScreen(unittest.TestCase):
self.assertNotIn("Read the first", text)
class DeviceAndEmulatorScreens(unittest.TestCase):
"""Device chooses --target and --every-board, Emulators --emulator, and
Change keeps every option one level below the plan, grouped by intent."""
def setUp(self):
patcher = mock.patch.object(install, "_mounted_cards", return_value=[])
patcher.start()
self.addCleanup(patcher.stop)
def text(self, state: install.TuiState, cols: int = 80, rows: int = 24) -> str:
return "\n".join(str(line) for line in install.tui_view(state, cols, rows))
def focus(self, state: install.TuiState, action: str, value: object = None) -> None:
rows = install.tui_rows(state)
state.focus[state.screen] = next(
index for index, row in enumerate(rows)
if row.action == action and (value is None or row.value == value))
def test_change_groups_every_option_under_headings_focus_skips(self):
state = checked_state()
press(state, "o")
rows = install.tui_rows(state)
headings = [row.label for row in rows if row.action == "heading"]
self.assertEqual(headings, list(install.TUI_CHANGE_GROUPS))
self.assertNotEqual(rows[state.focus["options"]].action, "heading")
flags = {row.right for row in rows if row.action != "heading"}
for flag in ("--region", "--core", "--emulator", "--no-game-data", "--dest", "--from",
"--from-pack", "--target", "--installed-cores", "--jobs", "--offline",
"--dry-run"):
self.assertIn(flag, flags)
# Down and Up never stop on a heading, Home neither.
for key in ("down",) * len(rows) + ("up",) * len(rows) + ("home", "end", "home"):
press(state, key)
self.assertNotEqual(install.tui_rows(state)[state.focus["options"]].action,
"heading", key)
# Up on the first row stays: the list does not wrap past its heading.
press(state, "home", "up")
self.assertEqual(state.focus["options"], 1)
# The plan's row and bar name the screen.
plan = checked_state()
self.assertIn("Change", [row.label for row in install.tui_rows(plan)])
self.assertIn("Y/o Change", self.text(plan))
def test_a_tap_on_a_heading_does_nothing(self):
state = checked_state()
press(state, "o")
before = dict(state.focus)
rows = install.tui_rows(state)
index = next(i for i, row in enumerate(rows) if row.action == "heading")
state.cols, state.rows = 80, 24
state.hits = install.tui_hits(state, install.tui_view(state, 80, 24))
number = next(target[0] for target in state.hits.targets
if target[3][:2] == ("row", index))
state.now = state.hits.shown + 1
install.tui_mouse(state, install.TuiMouse(0, 3, number + 1, False))
self.assertEqual(install.tui_mouse(state, install.TuiMouse(0, 3, number + 1, True)), [])
self.assertEqual(state.focus, before)
def test_device_lists_the_card_board_first_and_chosen(self):
state = device_state()
self.assertEqual(state.screen, "device")
rows = install.tui_rows(state)
self.assertEqual([row.label for row in rows],
["(x) h700", "( ) bcm2711", "( ) x86_64", "( ) Every board"])
self.assertEqual(rows[0].right, "named by the card")
self.assertEqual(rows[1].right, "rpi4")
self.assertEqual(state.focus["device"], 0)
# Chosen as it is: nothing to say on the command line.
press(state, "enter")
self.assertEqual(state.screen, "options")
self.assertEqual([flag for flag in install.tui_flags(state)
if flag[0] in ("--target", "--every-board")], [])
self.assertIn("Device: h700, named by the card", self.text(state))
def test_on_the_device_itself_it_says_this_device(self):
state = checked_state()
state.board_seen = ("retroarch", state.dest, "bcm2711", True, True)
state.stack.append("options")
self.assertIn("Device: bcm2711, this device", self.text(state))
def test_the_board_event_is_kept_across_checks(self):
state = checked_state()
state.run, state.running = "check", True
install.tui_receive(state, ("event", state.run_id, {
"event": "board", "platform": "retroarch", "board": "h700", "applied": True,
"message": "Board h700 found on the card (--every-board installs all boards)"}))
with mock.patch.object(install, "detect_board", return_value=None):
self.assertEqual(install._board_seen(state)[:2], ("h700", True))
install._start_run(state, "check")
self.assertEqual(install._board_seen(state)[:2], ("h700", True))
def test_another_board_and_every_board_set_their_flag(self):
state = device_state()
self.focus(state, "board", "bcm2711")
press(state, "enter")
self.assertIn(("--target", "bcm2711"), install.tui_flags(state))
self.assertIn("--target=bcm2711", install.tui_argv(state, "install", "py", "i.py"))
self.assertIn("Device: bcm2711", self.text(state))
# Back on the plan, counted again for the board.
self.assertEqual(press(state, "esc"), [("run", "check")])
state = device_state()
self.focus(state, "board", "")
press(state, "enter")
self.assertEqual([flag for flag in install.tui_flags(state)
if flag[0] in ("--target", "--every-board")],
[("--every-board", None)])
self.assertIn("Device: every board", self.text(state))
def test_with_no_board_read_every_board_is_the_choice(self):
state = device_state(board="")
self.assertEqual(install.tui_rows(state)[-1].label, "(x) Every board")
self.assertEqual(state.focus["device"], 3)
self.assertEqual([flag for flag in install.tui_flags(state)
if flag[0] in ("--target", "--every-board")], [])
# Chosen, it is said: a card put in the reader later names none.
press(state, "enter")
self.assertEqual([flag for flag in install.tui_flags(state)
if flag[0] in ("--target", "--every-board")],
[("--every-board", None)])
def test_a_board_list_that_cannot_be_read_is_said(self):
state = checked_state()
state.stack.append("options")
self.focus(state, "device")
press(state, "enter")
self.assertIn("Reading the board list...", self.text(state))
install.tui_receive(state, ("targets", "retroarch", None,
"The board list could not be read."))
self.assertIn("The board list could not be read.", self.text(state))
self.assertEqual(press(state, "esc"), [])
self.assertEqual(state.screen, "options")
def test_the_command_line_choice_is_the_one_shown(self):
args = _args(platform="retroarch", dest=SYSTEM_DIR, target="bcm2711",
emulator=["mesen"])
state, _effects = install.tui_start(args, "linux", detect=False)
self.assertEqual((state.target, state.emulators), ("bcm2711", ["mesen"]))
self.assertNotIn("--target", [flag for flag, _value in state.passthrough])
flags = install.tui_flags(state)
self.assertIn(("--target", "bcm2711"), flags)
self.assertIn(("--emulator", "mesen"), flags)
def test_emulators_ticked_are_the_emulator_flags(self):
state = checked_state()
state.stack.append("options")
self.focus(state, "emulators")
press(state, "enter")
self.assertEqual(state.screen, "emulators")
rows = install.tui_rows(state)
self.assertEqual([row.label for row in rows if row.action == "emulator"],
["[ ] mesen", "[ ] pcsx_rearmed"])
self.assertEqual(rows[state.focus["emulators"]].value, "mesen")
press(state, " ")
self.assertEqual(state.emulators, ["mesen"])
self.assertIn(("--emulator", "mesen"), install.tui_flags(state))
press(state, "n")
self.assertEqual(state.emulators, [])
press(state, " ", "esc")
self.assertEqual(state.screen, "options")
self.assertIn("Emulators: mesen", self.text(state))
def test_without_the_internet_sets_offline_for_the_runs(self):
state = checked_state()
state.stack.append("options")
self.focus(state, "offline")
with mock.patch.dict(os.environ, {}, clear=False):
os.environ.pop(install.OFFLINE_VARIABLE, None)
self.assertIn("Without the internet: no", self.text(state))
self.assertEqual(press(state, "enter"), [("offline", True)])
install.set_offline(True)
self.assertIn("Without the internet: yes", self.text(state))
self.assertIn(("--offline", None), install.tui_flags(state))
self.assertEqual(press(state, "left"), [("offline", False)])
install.set_offline(False)
self.assertNotIn(("--offline", None), install.tui_flags(state))
def test_from_a_pack_opens_the_browser_on_zips_and_reads_the_pack(self):
root = Path(tempfile.mkdtemp(dir=REPO_ROOT / "tmp"))
self.addCleanup(shutil.rmtree, root, True)
(root / "Downloads").mkdir()
pack = root / "Downloads" / "RetroArch_BIOS_Pack.zip"
pack.write_bytes(b"PK")
(root / "Downloads" / "notes.txt").write_text("x")
state = checked_state()
state.home = root
state.stack.append("options")
self.focus(state, "pack")
press(state, "enter")
self.assertEqual((state.screen, state.browse_for), ("browse", "pack"))
rows = install.tui_rows(state)
self.assertNotIn("use", [row.action for row in rows])
self.assertEqual([row.label for row in rows if row.action == "zip"],
["RetroArch_BIOS_Pack.zip"])
self.focus(state, "zip")
self.assertIn("A/Enter Use this pack", self.text(state))
self.assertEqual(press(state, "enter"), [("pack", pack)])
# Refused: said, the browser stays.
install.tui_receive(state, ("pack_opened", pack, None, "Not a pack."))
self.assertEqual(state.screen, "browse")
self.assertIn("Not a pack.", self.text(state))
opened = mock.Mock()
effects = install.tui_receive(state, ("pack_opened", pack, opened, ""))
self.assertEqual(effects, [("use_pack", opened), ("fetch", "retroarch")])
self.assertEqual(state.packs, [pack])
self.assertIn(("--from-pack", str(pack)), install.tui_flags(state))
def test_open_tui_pack_refuses_another_platforms_pack(self):
root = Path(tempfile.mkdtemp(dir=REPO_ROOT / "tmp"))
self.addCleanup(shutil.rmtree, root, True)
pack = root / "Batocera_BIOS_Pack.zip"
with zipfile.ZipFile(pack, "w") as archive:
archive.writestr("manifest.json", json.dumps({"platform": "batocera",
"files": []}))
previous = install.LOCAL.pack
opened, problem = install.open_tui_pack(pack, "retroarch")
self.assertIs(install.LOCAL.pack, previous)
self.assertIsNone(opened)
self.assertTrue(problem)
def _parity_list(root: Path) -> tuple[Path, Path]:
"""A RetroArch list whose cores per board pick other files, a shared
destination two cores want different bytes at, and the copies of every
file in a folder: an install from it needs no network."""
payloads = root / "copies"
payloads.mkdir()
entries = []
alternative = {}
for name, cores, systems in (("plat.bin", None, ["sony-playstation"]),
("pcsx/extra.bin", ["pcsx_rearmed"], ["sony-playstation"]),
("mesen/nes.bin", ["mesen"], ["nintendo-nes"]),
("nes_plat.bin", None, ["nintendo-nes"]),
("shared.bin", ["pcsx_rearmed"], ["sony-playstation"]),
("shared.bin#mesen", ["mesen"], ["nintendo-nes"])):
payload = name.encode() * 8
stored = name.replace("/", "_").replace("#", "_")
(payloads / stored).write_bytes(payload)
entry = {"dest": name.split("#")[0], "size": len(payload),
"sha1": hashlib.sha1(payload).hexdigest(),
"sha256": hashlib.sha256(payload).hexdigest(),
"repo_path": f"bios/{stored}", "cores": cores, "systems": systems}
if "#" in name:
alternative = {field: entry[field] for field in
("sha1", "sha256", "size", "repo_path", "cores")}
continue
entries.append(entry)
next(entry for entry in entries if entry["dest"] == "shared.bin")["alternatives"] = [
alternative]
listed = root / "list"
(listed / "targets").mkdir(parents=True)
manifest = {"manifest_version": 2, "platform": "retroarch", "files": entries,
"omitted_files": [],
"system_cores": {"sony-playstation": ["pcsx_rearmed"],
"nintendo-nes": ["mesen"]},
"core_names": {"pcsx_rearmed": ["pcsx_rearmed"], "mesen": ["mesen"]}}
(listed / "retroarch.json").write_text(json.dumps(manifest))
(listed / "targets" / "retroarch.json").write_text(json.dumps(
{"bcm2711": {"cores": ["pcsx_rearmed"]}, "h700": {"cores": ["mesen"]}}))
return listed / "retroarch.json", payloads
class ScreenChoicesInstallWhatTheirFlagInstalls(unittest.TestCase):
"""A board chosen on Device and an emulator ticked on Emulators install,
file for file and byte for byte, what --target and --emulator install."""
def setUp(self):
patcher = mock.patch.object(install, "_mounted_cards", return_value=[])
patcher.start()
self.addCleanup(patcher.stop)
self.root = Path(tempfile.mkdtemp(dir=REPO_ROOT / "tmp"))
self.addCleanup(shutil.rmtree, self.root, True)
self.listed, self.copies = _parity_list(self.root)
self.manifest = json.loads(self.listed.read_text())
self.env = {**os.environ, "RETROBIOS_OS": "linux", "HOME": str(self.root),
install.OFFLINE_VARIABLE: "1"}
def run_install(self, argv: list[str]) -> dict[str, str]:
proc = subprocess.run(argv, env=self.env, capture_output=True, text=True,
timeout=120, check=False, stdin=subprocess.DEVNULL)
self.assertEqual(proc.returncode, 0, proc.stdout + proc.stderr)
dest = Path(next(arg for arg in argv if arg.startswith("--dest=")).split("=", 1)[1])
return {path.relative_to(dest).as_posix(): hashlib.sha1(path.read_bytes()).hexdigest()
for path in dest.rglob("*") if path.is_file()}
def flag_run(self, name: str, *flags: str) -> dict[str, str]:
return self.run_install([sys.executable, str(REPO_ROOT / "install.py"),
"--platform=retroarch",
f"--dest={self.root / name / 'system'}",
f"--manifest={self.listed}", f"--from={self.copies}",
*flags, "--events", "--yes"])
def screen(self, name: str) -> install.TuiState:
"""Change, over the plan of the list as a check leaves it."""
state = install.TuiState(os_type="linux", home=self.root)
state.platform, state.dest = "retroarch", self.root / name / "system"
state.manifest, state.manifest_for = self.manifest, "retroarch"
state.manifest_path, state.manifest_given = self.listed, True
state.from_folders = [self.copies]
state.check = dict(CHECK)
state.stack = ["plan", "options"]
return state
def screen_run(self, state: install.TuiState) -> dict[str, str]:
return self.run_install(install.tui_argv(state, "install", sys.executable,
str(REPO_ROOT / "install.py")))
@staticmethod
def choose(state: install.TuiState, action: str, value: object = None) -> None:
rows = install.tui_rows(state)
state.focus[state.screen] = next(
index for index, row in enumerate(rows)
if row.action == action and (value is None or row.value == value))
def test_a_board_chosen_on_device_installs_what_target_installs(self):
targets = install._validate_targets(
json.loads((self.listed.parent / "targets" / "retroarch.json").read_text()))
everything = self.flag_run("all")
chosen = {}
for board in ("bcm2711", "h700"):
with self.subTest(board=board):
state = self.screen(f"screen-{board}")
self.choose(state, "device")
self.assertEqual(press(state, "enter"), [("targets", "retroarch")])
install.tui_receive(state, ("targets", "retroarch", targets, ""))
self.choose(state, "board", board)
press(state, "enter")
self.assertEqual(state.screen, "options")
chosen[board] = self.screen_run(state)
self.assertEqual(chosen[board],
self.flag_run(f"flag-{board}", "--target", board))
self.assertNotEqual(chosen[board], everything)
# The two boards' cores want other bytes at one destination.
self.assertNotEqual(chosen["bcm2711"]["shared.bin"], chosen["h700"]["shared.bin"])
def test_every_board_installs_what_every_board_installs(self):
targets = install._validate_targets(
json.loads((self.listed.parent / "targets" / "retroarch.json").read_text()))
state = self.screen("screen-every")
state.board_seen = ("retroarch", state.dest, "h700", True, True)
self.choose(state, "device")
press(state, "enter")
install.tui_receive(state, ("targets", "retroarch", targets, ""))
self.choose(state, "board", "")
press(state, "enter")
self.assertEqual(self.screen_run(state),
self.flag_run("flag-every", "--every-board"))
def test_an_emulator_ticked_installs_what_emulator_installs(self):
for emulator in ("mesen", "pcsx_rearmed"):
with self.subTest(emulator=emulator):
state = self.screen(f"screen-{emulator}")
self.choose(state, "emulators")
press(state, "enter")
self.choose(state, "emulator", emulator)
press(state, " ", "esc")
self.assertEqual(state.screen, "options")
chosen = self.screen_run(state)
self.assertEqual(chosen, self.flag_run(f"flag-{emulator}",
"--emulator", emulator))
# The files of its systems, and its own copy of the shared one.
shared = next(entry for entry in self.manifest["files"]
if entry["dest"] == "shared.bin")
self.assertEqual(chosen["shared.bin"], shared["sha1"] if emulator ==
"pcsx_rearmed" else shared["alternatives"][0]["sha1"])
self.assertNotIn("nes_plat.bin" if emulator == "pcsx_rearmed"
else "plat.bin", chosen)
class EmulatorChoiceMatchesTheEmulatorPack(unittest.TestCase):
"""An emulator ticked on Emulators against the pack generate_pack.py
--emulator builds for it, on the real lists: every file of the pack at
its destination with its bytes, and beside them only the files the
platform's own list names for the systems the emulator runs."""
CASES = (("retroarch", "handy"), ("retroarch", "beetle_psx"), ("retroarch", "mesen"),
("batocera", "mesen"), ("batocera", "handy"))
@classmethod
def setUpClass(cls):
db_path = REPO_ROOT / "database.json"
if not db_path.exists():
raise unittest.SkipTest("database.json is not built")
if sys.version_info < (3, 9):
# The builder's floor: install.py alone keeps 3.8.
raise unittest.SkipTest("generate_pack.py needs Python 3.9 or newer")
sys.path.insert(0, str(REPO_ROOT / "scripts"))
import generate_pack as gp
from common import build_zip_contents_index
cls.gp = gp
cls.db = json.loads(db_path.read_text(encoding="utf-8"))
cls.zip_contents = build_zip_contents_index(cls.db)
cls.by_path = {entry["path"]: sha1 for sha1, entry in cls.db["files"].items()}
def pack(self, emulator: str) -> dict[str, str]:
record = self.gp.PackRecord()
with contextlib.redirect_stdout(io.StringIO()):
self.gp.generate_emulator_pack(
[emulator], str(REPO_ROOT / "emulators"), self.db, str(REPO_ROOT / "bios"),
str(REPO_ROOT / "tmp"), zip_contents=self.zip_contents, offline=True,
record=record)
return {member: self.by_path[record.sources[member]] for member in record.files}
def test_each_case(self):
for plat, emulator in self.CASES:
with self.subTest(platform=plat, emulator=emulator):
manifest = json.loads((REPO_ROOT / "install" / f"{plat}.json").read_text())
state = install.TuiState(os_type="linux")
state.platform, state.dest = plat, Path("/x/bios")
state.manifest, state.manifest_for = manifest, plat
state.stack = ["plan", "options", "emulators"]
rows = install.tui_rows(state)
state.focus["emulators"] = next(i for i, row in enumerate(rows)
if row.value == emulator)
press(state, " ")
argv = install.tui_argv(state, "install", "py", "install.py")
args = install.build_parser().parse_args(argv[2:])
self.assertEqual(args.emulator, [emulator])
with contextlib.redirect_stdout(io.StringIO()):
files, _omitted = install._narrow_to_emulators(
args.emulator, manifest, plat, manifest["files"],
manifest["omitted_files"])
installed = {entry["dest"]: entry["sha1"] for entry in files}
packed = self.pack(emulator)
self.assertTrue(packed)
self.assertEqual({dest: installed.get(dest) for dest in packed}, packed)
for dest in set(installed) - set(packed):
entry = next(entry for entry in files if entry["dest"] == dest)
self.assertIsNone(entry.get("cores"), dest)
class DeviceAndEmulatorReview(unittest.TestCase):
"""The review of 2026-11-11: each finding, held."""
def setUp(self):
patcher = mock.patch.object(install, "_mounted_cards", return_value=[])
patcher.start()
self.addCleanup(patcher.stop)
@staticmethod
def focus(state: install.TuiState, action: str, value: object = None) -> None:
rows = install.tui_rows(state)
state.focus[state.screen] = next(
index for index, row in enumerate(rows)
if row.action == action and (value is None or row.value == value))
def text(self, state: install.TuiState) -> str:
return "\n".join(str(line) for line in install.tui_view(state, 80, 24))
def test_every_board_is_said_whatever_the_run_started_with(self):
for start in ({"target": "bcm2711"}, {"every_board": True}, {}):
with self.subTest(start=start):
state = device_state(board="")
state.target = start.get("target", "")
state.every_board = start.get("every_board", False)
self.focus(state, "board", "")
press(state, "enter")
self.assertEqual([flag for flag in install.tui_flags(state)
if flag[0] in ("--target", "--every-board")],
[("--every-board", None)])
# The board the run reads itself clears both.
state = device_state()
state.every_board = True
self.focus(state, "board", "h700")
press(state, "enter")
self.assertEqual((state.target, state.every_board), ("", False))
def test_a_board_list_that_failed_is_fetched_again(self):
state = checked_state()
state.stack.append("options")
self.focus(state, "device")
self.assertEqual(press(state, "enter"), [("targets", "retroarch")])
install.tui_receive(state, ("targets", "retroarch", None,
"The board list could not be read."))
self.assertIn("The board list could not be read.", self.text(state))
press(state, "esc")
self.assertEqual(press(state, "enter"), [("targets", "retroarch")])
self.assertIn("Reading the board list...", self.text(state))
def test_a_pack_is_read_only_once_the_screen_takes_it(self):
state = checked_state()
state.stack += ["options", "browse"]
state.browse_for = "pack"
pack = mock.Mock()
effects = install.tui_receive(state, ("pack_opened", Path("p.zip"), pack, ""))
self.assertEqual(effects[0], ("use_pack", pack))
# Left before it opened: closed, never read.
state = checked_state()
effects = install.tui_receive(state, ("pack_opened", Path("p.zip"), pack, ""))
self.assertEqual(effects, [("close_pack", pack)])
self.assertEqual(state.packs, [])
def test_open_tui_pack_leaves_the_run_s_pack_alone(self):
root = Path(tempfile.mkdtemp(dir=REPO_ROOT / "tmp"))
self.addCleanup(shutil.rmtree, root, True)
pack = root / "RetroArch_BIOS_Pack.zip"
with zipfile.ZipFile(pack, "w") as archive:
archive.writestr("manifest.json", json.dumps({
"platform": "retroarch", "files": [
{"dest": "a.bin", "path": "a.bin", "sha1": "0" * 40, "size": 1}]}))
archive.writestr("a.bin", b"a")
previous = install.LOCAL.pack
opened, problem = install.open_tui_pack(pack, "retroarch")
self.addCleanup(lambda: opened is not None and opened.close())
self.assertEqual(problem, "", problem)
self.assertIsNotNone(opened)
self.assertIs(install.LOCAL.pack, previous)
def test_a_zip_that_is_no_pack_is_closed(self):
root = Path(tempfile.mkdtemp(dir=REPO_ROOT / "tmp"))
self.addCleanup(shutil.rmtree, root, True)
notpack = root / "photos.zip"
with zipfile.ZipFile(notpack, "w") as archive:
archive.writestr("a.jpg", b"x")
opened = []
real = zipfile.ZipFile
def tracked(*args, **kwargs):
archive = real(*args, **kwargs)
opened.append(archive)
return archive
with mock.patch.object(install.zipfile, "ZipFile", side_effect=tracked):
with self.assertRaises(ValueError):
install.PackSource([notpack])
self.assertTrue(opened)
self.assertTrue(all(archive.fp is None for archive in opened))
def test_another_setup_drops_the_board_and_emulators(self):
state = checked_state()
state.target, state.every_board, state.emulators = "bcm2711", False, ["mesen"]
install._set_platform(state, "batocera")
self.assertEqual((state.target, state.every_board, state.emulators),
("", False, []))
state = checked_state()
state.target, state.emulators = "bcm2711", ["mesen"]
install._set_platform(state, "retroarch")
self.assertEqual((state.target, state.emulators), ("bcm2711", ["mesen"]))
def test_names_the_new_list_lacks_are_left_out_and_said(self):
state = checked_state()
state.emulators, state.target = ["mesen", "gone_core"], "nowhere"
state.targets, state.targets_for = dict(TARGETS), "retroarch"
install._known_choice(state, "retroarch", MANIFEST)
self.assertEqual((state.emulators, state.target), (["mesen"], ""))
self.assertEqual(state.status, "Left out, not in this list: --emulator gone_core, "
"--target nowhere.")
def test_page_up_and_home_never_rest_on_a_heading(self):
state = checked_state()
press(state, "o")
rows = install.tui_rows(state)
for start in (1, 6, len(rows) - 1):
for key in ("pgup", "home"):
with self.subTest(start=start, key=key):
state.focus["options"] = start
press(state, key)
self.assertEqual(state.focus["options"], 1)
def test_offline_is_refused_for_a_target_with_no_board_list_held(self):
state = checked_state()
state.target = "bcm2711"
state.stack.append("options")
self.focus(state, "offline")
with mock.patch.dict(os.environ, {}, clear=False):
os.environ.pop(install.OFFLINE_VARIABLE, None)
self.assertEqual(press(state, "enter"), [])
self.assertIn("Open Device once first", self.text(state))
state.targets, state.targets_for = dict(TARGETS), "retroarch"
self.assertEqual(press(state, "enter"), [("offline", True)])
def test_the_board_list_is_fetched_once_with_the_list_s_timeout(self):
inbox: queue.Queue = queue.Queue()
with mock.patch.object(install, "_fetch_json", return_value={}) as fetched, \
mock.patch.object(install, "local_targets", return_value=None):
install._tui_fetch_targets("retroarch", inbox, io.StringIO())
self.assertEqual(fetched.call_args.kwargs["attempts"], 1)
self.assertEqual(fetched.call_args.kwargs["timeout"], install.TUI_FETCH_TIMEOUT)
self.assertEqual(inbox.get_nowait(), ("targets", "retroarch", {}, ""))
if __name__ == "__main__":
unittest.main()