feat: make a pack from the installer

--pack downloads the narrowed choice into a pack ZIP laid out as --from-pack reads it, the list narrowed to the choice inside. Every member is checked against its SHA-1 before the ZIP is closed, and a failure leaves no file behind. --split writes parts that are each a whole ZIP, and a pack past 4 GB on a FAT32 drive is split by itself. More on the plan holds Make a pack, its plan and its result. Event pack.
This commit is contained in:
Abdessamad Derraz committed 2026-11-11 17:17:42 +01:00
1 parent a51f3d7f43
commit 92462effc6
41 files changed
+3174 -165

No files matched your search

+929 -36
View File
File diff suppressed because it is too large. Load diff
+127 -4
View File
@@ -337,6 +337,7 @@
Copy the BIOS files from an old card or a folder
Details
Change
More
Quit
@@ -363,7 +364,6 @@
^[[0;1;35mA/Enter^[[0m Install ^[[0;2mB/Esc^[[0m Back ^[[0;2mY/o^[[0m Change ^[[0;2m?^[[0m Help
@@ -376,7 +376,7 @@
^[[0;7;35m > Close^[[0m
Details
Change
More
@@ -997,6 +997,7 @@
Copy the BIOS files from an old card or a folder
Details
Change
More
Quit
@@ -1019,7 +1020,6 @@
^[[0;1;35mA/Enter^[[0m Install ^[[0;2mB/Esc^[[0m Back ^[[0;2mY/o^[[0m Change ^[[0;2m?^[[0m Help
@@ -1194,7 +1194,7 @@
Backups
Put back a backup
Delete a backup
Make a pack
@@ -1433,3 +1433,126 @@
^[[0;1;35mA/Enter^[[0m Choose ^[[0;2mB/Esc^[[0m Back ^[[0;2m?^[[0m Help
=== pack-plan
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Make a pack^[[0m
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.zip
One ZIP, installed with --from-pack.
^[[0;7;35m > Make the pack^[[0m
Change where
^[[0;1;35mA/Enter^[[0m Make ^[[0;2mB/Esc^[[0m Back ^[[0;2m?^[[0m Help
=== pack-plan-parts
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Make a pack^[[0m
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.part1of3.zip
In 3 parts of at most 3.9 GB, as FAT32 holds no file of 4 GB.
^[[0;7;35m > Make the pack^[[0m
Change where
^[[0;1;35mA/Enter^[[0m Make ^[[0;2mB/Esc^[[0m Back ^[[0;2m?^[[0m Help
=== pack-done
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: ^[[0;1;32mDone^[[0m
^[[0;1m Pack made: ^[[0;1;35m4^[[0;1m files, ^[[0;1;35m1023.4 KB^[[0;1m, in ^[[0;1;35m3^[[0;1m parts.^[[0m
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.part1of3.zip
On the other device, install from it with --from-pack.
^[[0;7;35m > Close^[[0m
^[[0;1;35mA/Enter^[[0m Close ^[[0;2mB/Esc^[[0m Back ^[[0;2m?^[[0m Help
+44 -5
View File
@@ -108,12 +108,12 @@
^[[0;1m ^[[0;1;35m4^[[0;1m files to download, ^[[0;1;35m1.0 MB^[[0m
BIOS folder:
^[[0;1m~/.config/retroarch/system^[[0m
^[[0;7;35m > Install^[[0m
Choose systems
Copy from an old card or a folder
Details
Change
Quit
^[[0;2m 1-4 of 7^[[0m
^[[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
@@ -125,7 +125,7 @@
^[[0;7;35m > Close^[[0m
Details
Change
More
^[[0;1;35mA^[[0m Close ^[[0;2mB^[[0m Back ^[[0;2mY^[[0m Change ^[[0;2m?^[[0m Help
=== systems
@@ -321,7 +321,7 @@
For the games on this card: yes 412
Only what starts: no
Show the games
^[[0;2m 1-4 of 9^[[0m
^[[0;2m 1-4 of 10^[[0m
^[[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
@@ -382,7 +382,7 @@
Backups
Put back a backup
Delete a backup
Make a pack
@@ -453,3 +453,42 @@
^[[0;1;35mA^[[0m Choose ^[[0;2mB^[[0m Back ^[[0;2m?^[[0m Help
=== pack-plan
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Make a pack^[[0m
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
^[[0;1mRetroArch_Custom_BIOS_Pack.zip^[[0m
One ZIP, installed with --from-pack.
^[[0;7;35m > Make the pack^[[0m
Change where
^[[0;1;35mA^[[0m Make ^[[0;2mB^[[0m Back ^[[0;2m?^[[0m Help
=== pack-plan-parts
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Make a pack^[[0m
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
^[[0;1mRetroArch_Custom_BIOS_Pack.part1of3.^[[0m
^[[0;1mzip^[[0m
In 3 parts of at most 3.9 GB, as FAT32
holds no file of 4 GB.
^[[0;7;35m > Make the pack^[[0m
Change where
^[[0;1;35mA^[[0m Make ^[[0;2mB^[[0m Back ^[[0;2m?^[[0m Help
=== pack-done
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: ^[[0;1;32mDone^[[0m
^[[0;1m Pack made: ^[[0;1;35m4^[[0;1m files, ^[[0;1;35m1023.4 KB^[[0;1m, in ^[[0;1;35m3^[[0m
^[[0;1m parts.^[[0m
Pack: ~/Downloads/
^[[0;1mRetroArch_Custom_BIOS_Pack.part1of3.^[[0m
^[[0;1mzip^[[0m
On the other device, install from it
with --from-pack.
^[[0;7;35m > Close^[[0m
^[[0;1;35mA^[[0m Close ^[[0;2mB^[[0m Back ^[[0;2m?^[[0m Help
+53 -5
View File
@@ -138,9 +138,9 @@
Copy from an old card or a folder
Details
Change
More
Quit
^[[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
@@ -152,7 +152,7 @@
^[[0;7;35m > Close^[[0m
Details
Change
More
@@ -388,6 +388,7 @@
^[[0;1m ^[[0;1;35m4^[[0;1m files to download, ^[[0;1;35m1.0 MB^[[0m
BIOS folder:
^[[0;1m~/.config/retroarch/system^[[0m
^[[0;7;35m > Install^[[0m
For the games on this card: yes 412
Only what starts: no
@@ -395,8 +396,7 @@
Choose systems
Copy from an old card or a folder
Details
Change
Quit
^[[0;2m 1-7 of 10^[[0m
^[[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
@@ -469,7 +469,7 @@
Backups
Put back a backup
Delete a backup
Make a pack
@@ -558,3 +558,51 @@
^[[0;1;35mA^[[0m Choose ^[[0;2mB^[[0m Back ^[[0;2m?^[[0m Help
=== pack-plan
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Make a pack^[[0m
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
^[[0;1mRetroArch_Custom_BIOS_Pack.zip^[[0m
One ZIP, installed with --from-pack.
^[[0;7;35m > Make the pack^[[0m
Change where
^[[0;1;35mA^[[0m Make ^[[0;2mB^[[0m Back ^[[0;2m?^[[0m Help
=== pack-plan-parts
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Make a pack^[[0m
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
^[[0;1mRetroArch_Custom_BIOS_Pack.part1of3.^[[0m
^[[0;1mzip^[[0m
In 3 parts of at most 3.9 GB, as FAT32
holds no file of 4 GB.
^[[0;7;35m > Make the pack^[[0m
Change where
^[[0;1;35mA^[[0m Make ^[[0;2mB^[[0m Back ^[[0;2m?^[[0m Help
=== pack-done
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: ^[[0;1;32mDone^[[0m
^[[0;1m Pack made: ^[[0;1;35m4^[[0;1m files, ^[[0;1;35m1023.4 KB^[[0;1m, in ^[[0;1;35m3^[[0m
^[[0;1m parts.^[[0m
Pack: ~/Downloads/
^[[0;1mRetroArch_Custom_BIOS_Pack.part1of3.^[[0m
^[[0;1mzip^[[0m
On the other device, install from it
with --from-pack.
^[[0;7;35m > Close^[[0m
^[[0;1;35mA^[[0m Close ^[[0;2mB^[[0m Back ^[[0;2m?^[[0m Help
+79 -4
View File
@@ -209,6 +209,7 @@
Copy the BIOS files from an old card or a folder
Details
Change
More
Quit
@@ -221,7 +222,6 @@
^[[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
@@ -232,7 +232,7 @@
^[[0;7;35m > Close^[[0m
Details
Change
More
@@ -613,6 +613,7 @@
Copy the BIOS files from an old card or a folder
Details
Change
More
Quit
@@ -621,7 +622,6 @@
^[[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
@@ -730,7 +730,7 @@
Backups
Put back a backup
Delete a backup
Make a pack
@@ -873,3 +873,78 @@
^[[0;1;35mA/Enter^[[0m Choose ^[[0;2mB/Esc^[[0m Back ^[[0;2m?^[[0m Help
=== pack-plan
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Make a pack^[[0m
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.zip
One ZIP, installed with --from-pack.
^[[0;7;35m > Make the pack^[[0m
Change where
^[[0;1;35mA/Enter^[[0m Make ^[[0;2mB/Esc^[[0m Back ^[[0;2m?^[[0m Help
=== pack-plan-parts
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Make a pack^[[0m
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.part1of3.zip
In 3 parts of at most 3.9 GB, as FAT32 holds no file of 4 GB.
^[[0;7;35m > Make the pack^[[0m
Change where
^[[0;1;35mA/Enter^[[0m Make ^[[0;2mB/Esc^[[0m Back ^[[0;2m?^[[0m Help
=== pack-done
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: ^[[0;1;32mDone^[[0m
^[[0;1m Pack made: ^[[0;1;35m4^[[0;1m files, ^[[0;1;35m1023.4 KB^[[0;1m, in ^[[0;1;35m3^[[0;1m parts.^[[0m
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.part1of3.zip
On the other device, install from it with --from-pack.
^[[0;7;35m > Close^[[0m
^[[0;1;35mA/Enter^[[0m Close ^[[0;2mB/Esc^[[0m Back ^[[0;2m?^[[0m Help
+1 -1
View File
@@ -4,7 +4,7 @@
Backups
Put back a backup
Delete a backup
Make a pack
+1 -1
View File
@@ -4,7 +4,7 @@
Backups
Put back a backup
Delete a backup
Make a pack
+1 -1
View File
@@ -4,7 +4,7 @@
Backups
Put back a backup
Delete a backup
Make a pack
+1 -1
View File
@@ -4,7 +4,7 @@
Backups
Put back a backup
Delete a backup
Make a pack
+40
View File
@@ -0,0 +1,40 @@
RetroBIOS: Done
Pack made: 4 files, 1023.4 KB, in 3 parts.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.part1of3.zip
On the other device, install from it with --from-pack.
> Close
A/Enter Close B/Esc Back ? Help
+12
View File
@@ -0,0 +1,12 @@
RetroBIOS: Done
Pack made: 4 files, 1023.4 KB, in 3
parts.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
On the other device, install from it
with --from-pack.
> Close
A Close B Back ? Help
+15
View File
@@ -0,0 +1,15 @@
RetroBIOS: Done
Pack made: 4 files, 1023.4 KB, in 3
parts.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
On the other device, install from it
with --from-pack.
> Close
A Close B Back ? Help
+24
View File
@@ -0,0 +1,24 @@
RetroBIOS: Done
Pack made: 4 files, 1023.4 KB, in 3 parts.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.part1of3.zip
On the other device, install from it with --from-pack.
> Close
A/Enter Close B/Esc Back ? Help
+40
View File
@@ -0,0 +1,40 @@
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.zip
One ZIP, installed with --from-pack.
> Make the pack
Change where
A/Enter Make B/Esc Back ? Help
+12
View File
@@ -0,0 +1,12 @@
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.zip
One ZIP, installed with --from-pack.
> Make the pack
Change where
A Make B Back ? Help
+15
View File
@@ -0,0 +1,15 @@
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.zip
One ZIP, installed with --from-pack.
> Make the pack
Change where
A Make B Back ? Help
+24
View File
@@ -0,0 +1,24 @@
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.zip
One ZIP, installed with --from-pack.
> Make the pack
Change where
A/Enter Make B/Esc Back ? Help
+40
View File
@@ -0,0 +1,40 @@
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.part1of3.zip
In 3 parts of at most 3.9 GB, as FAT32 holds no file of 4 GB.
> Make the pack
Change where
A/Enter Make B/Esc Back ? Help
+12
View File
@@ -0,0 +1,12 @@
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
In 3 parts of at most 3.9 GB, as FAT32
holds no file of 4 GB.
> Make the pack
Change where
A Make B Back ? Help
+15
View File
@@ -0,0 +1,15 @@
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
In 3 parts of at most 3.9 GB, as FAT32
holds no file of 4 GB.
> Make the pack
Change where
A Make B Back ? Help
+24
View File
@@ -0,0 +1,24 @@
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.part1of3.zip
In 3 parts of at most 3.9 GB, as FAT32 holds no file of 4 GB.
> Make the pack
Change where
A/Enter Make B/Esc Back ? Help
+1 -1
View File
@@ -8,6 +8,7 @@
Copy the BIOS files from an old card or a folder
Details
Change
More
Quit
@@ -34,7 +35,6 @@
A/Enter Install B/Esc Back Y/o Change ? Help
+2 -2
View File
@@ -3,10 +3,10 @@
4 files to download, 1.0 MB
BIOS folder:
~/.config/retroarch/system
> Install
Choose systems
Copy from an old card or a folder
Details
Change
Quit
1-4 of 7
A Install B Back Y Change ? Help
+1 -1
View File
@@ -9,7 +9,7 @@
Copy from an old card or a folder
Details
Change
More
Quit
A Install B Back Y Change ? Help
+1 -1
View File
@@ -8,6 +8,7 @@
Copy the BIOS files from an old card or a folder
Details
Change
More
Quit
@@ -20,5 +21,4 @@
A/Enter Install B/Esc Back Y/o Change ? Help
+1 -1
View File
@@ -12,6 +12,7 @@
Copy the BIOS files from an old card or a folder
Details
Change
More
Quit
@@ -34,7 +35,6 @@
A/Enter Install B/Esc Back Y/o Change ? Help
+1 -1
View File
@@ -8,5 +8,5 @@
For the games on this card: yes 412
Only what starts: no
Show the games
1-4 of 9
1-4 of 10
A Install B Back Y Change ? Help
+2 -2
View File
@@ -3,6 +3,7 @@
4 files to download, 1.0 MB
BIOS folder:
~/.config/retroarch/system
> Install
For the games on this card: yes 412
Only what starts: no
@@ -10,6 +11,5 @@
Choose systems
Copy from an old card or a folder
Details
Change
Quit
1-7 of 10
A Install B Back Y Change ? Help
+1 -1
View File
@@ -12,6 +12,7 @@
Copy the BIOS files from an old card or a folder
Details
Change
More
Quit
@@ -20,5 +21,4 @@
A/Enter Install B/Esc Back Y/o Change ? Help
+1 -1
View File
@@ -6,7 +6,7 @@
> Close
Details
Change
More
+1 -1
View File
@@ -7,6 +7,6 @@
> Close
Details
Change
More
A Close B Back Y Change ? Help
+1 -1
View File
@@ -7,7 +7,7 @@
> Close
Details
Change
More
+1 -1
View File
@@ -6,7 +6,7 @@
> Close
Details
Change
More
+176 -14
View File
@@ -407,12 +407,12 @@
4 files to download, 1.0 MB
BIOS folder:
~/.config/retroarch/system
> Install
Choose systems
Copy from an old card or a folder
Details
Change
Quit
1-4 of 7
A Install B Back Y Change
=== plan 40x15
RetroBIOS: RetroArch
@@ -426,9 +426,9 @@
Copy from an old card or a folder
Details
Change
More
Quit
A Install B Back Y Change
=== plan 80x24
RetroBIOS: RetroArch
@@ -441,6 +441,7 @@
Copy the BIOS files from an old card or a folder
Details
Change
More
Quit
@@ -453,7 +454,6 @@
A Install B Back Y Change
=== plan-in-place 40x12
RetroBIOS: RetroArch
@@ -465,7 +465,7 @@
> Close
Details
Change
More
A Close B Back Y Change
=== plan-in-place 40x15
@@ -478,7 +478,7 @@
> Close
Details
Change
More
@@ -493,7 +493,7 @@
> Close
Details
Change
More
@@ -1144,7 +1144,7 @@
For the games on this card: yes 412
Only what starts: no
Show the games
1-4 of 9
1-4 of 10
A Install B Back Y Change
=== plan-games 40x15
RetroBIOS: RetroArch
@@ -1152,6 +1152,7 @@
4 files to download, 1.0 MB
BIOS folder:
~/.config/retroarch/system
> Install
For the games on this card: yes 412
Only what starts: no
@@ -1159,8 +1160,7 @@
Choose systems
Copy from an old card or a folder
Details
Change
Quit
1-7 of 10
A Install B Back Y Change
=== plan-games 80x24
RetroBIOS: RetroArch
@@ -1177,6 +1177,7 @@
Copy the BIOS files from an old card or a folder
Details
Change
More
Quit
@@ -1185,7 +1186,6 @@
A Install B Back Y Change
=== games 80x24
RetroBIOS: Games on this card
@@ -1352,7 +1352,7 @@
Backups
Put back a backup
Delete a backup
Make a pack
@@ -1365,7 +1365,7 @@
Backups
Put back a backup
Delete a backup
Make a pack
@@ -1381,7 +1381,7 @@
Backups
Put back a backup
Delete a backup
Make a pack
@@ -1669,3 +1669,165 @@
A Choose B Back
=== pack-plan 40x12
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.zip
One ZIP, installed with --from-pack.
> Make the pack
Change where
A Make B Back
=== pack-plan 40x15
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.zip
One ZIP, installed with --from-pack.
> Make the pack
Change where
A Make B Back
=== pack-plan 80x24
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.zip
One ZIP, installed with --from-pack.
> Make the pack
Change where
A Make B Back
=== pack-plan-parts 40x12
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
In 3 parts of at most 3.9 GB, as FAT32
holds no file of 4 GB.
> Make the pack
Change where
A Make B Back
=== pack-plan-parts 40x15
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
In 3 parts of at most 3.9 GB, as FAT32
holds no file of 4 GB.
> Make the pack
Change where
A Make B Back
=== pack-plan-parts 80x24
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.part1of3.zip
In 3 parts of at most 3.9 GB, as FAT32 holds no file of 4 GB.
> Make the pack
Change where
A Make B Back
=== pack-done 40x12
RetroBIOS: Done
Pack made: 4 files, 1023.4 KB, in 3
parts.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
On the other device, install from it
with --from-pack.
> Close
A Close B Back
=== pack-done 40x15
RetroBIOS: Done
Pack made: 4 files, 1023.4 KB, in 3
parts.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
On the other device, install from it
with --from-pack.
> Close
A Close B Back
=== pack-done 80x24
RetroBIOS: Done
Pack made: 4 files, 1023.4 KB, in 3 parts.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.part1of3.zip
On the other device, install from it with --from-pack.
> Close
A Close B Back
+176 -14
View File
@@ -407,12 +407,12 @@
4 files to download, 1.0 MB
BIOS folder:
~/.config/retroarch/system
> Install
Choose systems
Copy from an old card or a folder
Details
Change
Quit
1-4 of 7
A Install B Back Y Change
=== plan 40x15
RetroBIOS: RetroArch
@@ -426,9 +426,9 @@
Copy from an old card or a folder
Details
Change
More
Quit
A Install B Back Y Change
=== plan 80x24
RetroBIOS: RetroArch
@@ -441,6 +441,7 @@
Copy the BIOS files from an old card or a folder
Details
Change
More
Quit
@@ -453,7 +454,6 @@
A Install B Back Y Change
=== plan-in-place 40x12
RetroBIOS: RetroArch
@@ -465,7 +465,7 @@
> Close
Details
Change
More
A Close B Back Y Change
=== plan-in-place 40x15
@@ -478,7 +478,7 @@
> Close
Details
Change
More
@@ -493,7 +493,7 @@
> Close
Details
Change
More
@@ -1144,7 +1144,7 @@
For the games on this card: yes 412
Only what starts: no
Show the games
1-4 of 9
1-4 of 10
A Install B Back Y Change
=== plan-games 40x15
RetroBIOS: RetroArch
@@ -1152,6 +1152,7 @@
4 files to download, 1.0 MB
BIOS folder:
~/.config/retroarch/system
> Install
For the games on this card: yes 412
Only what starts: no
@@ -1159,8 +1160,7 @@
Choose systems
Copy from an old card or a folder
Details
Change
Quit
1-7 of 10
A Install B Back Y Change
=== plan-games 80x24
RetroBIOS: RetroArch
@@ -1177,6 +1177,7 @@
Copy the BIOS files from an old card or a folder
Details
Change
More
Quit
@@ -1185,7 +1186,6 @@
A Install B Back Y Change
=== games 80x24
RetroBIOS: Games on this card
@@ -1352,7 +1352,7 @@
Backups
Put back a backup
Delete a backup
Make a pack
@@ -1365,7 +1365,7 @@
Backups
Put back a backup
Delete a backup
Make a pack
@@ -1381,7 +1381,7 @@
Backups
Put back a backup
Delete a backup
Make a pack
@@ -1669,3 +1669,165 @@
A Choose B Back
=== pack-plan 40x12
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.zip
One ZIP, installed with --from-pack.
> Make the pack
Change where
A Make B Back
=== pack-plan 40x15
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.zip
One ZIP, installed with --from-pack.
> Make the pack
Change where
A Make B Back
=== pack-plan 80x24
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.zip
One ZIP, installed with --from-pack.
> Make the pack
Change where
A Make B Back
=== pack-plan-parts 40x12
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
In 3 parts of at most 3.9 GB, as FAT32
holds no file of 4 GB.
> Make the pack
Change where
A Make B Back
=== pack-plan-parts 40x15
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
In 3 parts of at most 3.9 GB, as FAT32
holds no file of 4 GB.
> Make the pack
Change where
A Make B Back
=== pack-plan-parts 80x24
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.part1of3.zip
In 3 parts of at most 3.9 GB, as FAT32 holds no file of 4 GB.
> Make the pack
Change where
A Make B Back
=== pack-done 40x12
RetroBIOS: Done
Pack made: 4 files, 1023.4 KB, in 3
parts.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
On the other device, install from it
with --from-pack.
> Close
A Close B Back
=== pack-done 40x15
RetroBIOS: Done
Pack made: 4 files, 1023.4 KB, in 3
parts.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
On the other device, install from it
with --from-pack.
> Close
A Close B Back
=== pack-done 80x24
RetroBIOS: Done
Pack made: 4 files, 1023.4 KB, in 3 parts.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.part1of3.zip
On the other device, install from it with --from-pack.
> Close
A Close B Back
+176 -14
View File
@@ -407,12 +407,12 @@
4 files to download, 1.0 MB
BIOS folder:
~/.config/retroarch/system
> Install
Choose systems
Copy from an old card or a folder
Details
Change
Quit
1-4 of 7
A Install B Back Y Change
=== plan 40x15
RetroBIOS: RetroArch
@@ -426,9 +426,9 @@
Copy from an old card or a folder
Details
Change
More
Quit
A Install B Back Y Change
=== plan 80x24
RetroBIOS: RetroArch
@@ -441,6 +441,7 @@
Copy the BIOS files from an old card or a folder
Details
Change
More
Quit
@@ -453,7 +454,6 @@
A Install B Back Y Change
=== plan-in-place 40x12
RetroBIOS: RetroArch
@@ -465,7 +465,7 @@
> Close
Details
Change
More
A Close B Back Y Change
=== plan-in-place 40x15
@@ -478,7 +478,7 @@
> Close
Details
Change
More
@@ -493,7 +493,7 @@
> Close
Details
Change
More
@@ -1144,7 +1144,7 @@
For the games on this card: yes 412
Only what starts: no
Show the games
1-4 of 9
1-4 of 10
A Install B Back Y Change
=== plan-games 40x15
RetroBIOS: RetroArch
@@ -1152,6 +1152,7 @@
4 files to download, 1.0 MB
BIOS folder:
~/.config/retroarch/system
> Install
For the games on this card: yes 412
Only what starts: no
@@ -1159,8 +1160,7 @@
Choose systems
Copy from an old card or a folder
Details
Change
Quit
1-7 of 10
A Install B Back Y Change
=== plan-games 80x24
RetroBIOS: RetroArch
@@ -1177,6 +1177,7 @@
Copy the BIOS files from an old card or a folder
Details
Change
More
Quit
@@ -1185,7 +1186,6 @@
A Install B Back Y Change
=== games 80x24
RetroBIOS: Games on this card
@@ -1352,7 +1352,7 @@
Backups
Put back a backup
Delete a backup
Make a pack
@@ -1365,7 +1365,7 @@
Backups
Put back a backup
Delete a backup
Make a pack
@@ -1381,7 +1381,7 @@
Backups
Put back a backup
Delete a backup
Make a pack
@@ -1669,3 +1669,165 @@
A Choose B Back
=== pack-plan 40x12
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.zip
One ZIP, installed with --from-pack.
> Make the pack
Change where
A Make B Back
=== pack-plan 40x15
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.zip
One ZIP, installed with --from-pack.
> Make the pack
Change where
A Make B Back
=== pack-plan 80x24
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.zip
One ZIP, installed with --from-pack.
> Make the pack
Change where
A Make B Back
=== pack-plan-parts 40x12
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
In 3 parts of at most 3.9 GB, as FAT32
holds no file of 4 GB.
> Make the pack
Change where
A Make B Back
=== pack-plan-parts 40x15
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
In 3 parts of at most 3.9 GB, as FAT32
holds no file of 4 GB.
> Make the pack
Change where
A Make B Back
=== pack-plan-parts 80x24
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.part1of3.zip
In 3 parts of at most 3.9 GB, as FAT32 holds no file of 4 GB.
> Make the pack
Change where
A Make B Back
=== pack-done 40x12
RetroBIOS: Done
Pack made: 4 files, 1023.4 KB, in 3
parts.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
On the other device, install from it
with --from-pack.
> Close
A Close B Back
=== pack-done 40x15
RetroBIOS: Done
Pack made: 4 files, 1023.4 KB, in 3
parts.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
On the other device, install from it
with --from-pack.
> Close
A Close B Back
=== pack-done 80x24
RetroBIOS: Done
Pack made: 4 files, 1023.4 KB, in 3 parts.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.part1of3.zip
On the other device, install from it with --from-pack.
> Close
A Close B Back
+176 -14
View File
@@ -382,12 +382,12 @@
4 files to download, 1.0 MB
BIOS folder:
~/.config/retroarch/system
> Install
Choose systems
Copy from an old card or a folder
Details
Change
Quit
1-4 of 7
Enter Install Esc Back o Change
=== plan 40x15
RetroBIOS: RetroArch
@@ -401,9 +401,9 @@
Copy from an old card or a folder
Details
Change
More
Quit
Enter Install Esc Back o Change
=== plan 80x24
RetroBIOS: RetroArch
@@ -416,6 +416,7 @@
Copy the BIOS files from an old card or a folder
Details
Change
More
Quit
@@ -428,7 +429,6 @@
Enter Install Esc Back o Change ? Help
=== plan-in-place 40x12
RetroBIOS: RetroArch
@@ -440,7 +440,7 @@
> Close
Details
Change
More
Enter Close Esc Back o Change
=== plan-in-place 40x15
@@ -453,7 +453,7 @@
> Close
Details
Change
More
@@ -468,7 +468,7 @@
> Close
Details
Change
More
@@ -1251,7 +1251,7 @@
For the games on this card: yes 412
Only what starts: no
Show the games
1-4 of 9
1-4 of 10
Enter Install Esc Back o Change
=== plan-games 40x15
RetroBIOS: RetroArch
@@ -1259,6 +1259,7 @@
4 files to download, 1.0 MB
BIOS folder:
~/.config/retroarch/system
> Install
For the games on this card: yes 412
Only what starts: no
@@ -1266,8 +1267,7 @@
Choose systems
Copy from an old card or a folder
Details
Change
Quit
1-7 of 10
Enter Install Esc Back o Change
=== plan-games 80x24
RetroBIOS: RetroArch
@@ -1284,6 +1284,7 @@
Copy the BIOS files from an old card or a folder
Details
Change
More
Quit
@@ -1292,7 +1293,6 @@
Enter Install Esc Back o Change ? Help
=== games 40x12
RetroBIOS: Games on this card
@@ -1517,7 +1517,7 @@
Backups
Put back a backup
Delete a backup
Make a pack
@@ -1530,7 +1530,7 @@
Backups
Put back a backup
Delete a backup
Make a pack
@@ -1546,7 +1546,7 @@
Backups
Put back a backup
Delete a backup
Make a pack
@@ -1834,3 +1834,165 @@
Enter Choose Esc Back ? Help
=== pack-plan 40x12
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.zip
One ZIP, installed with --from-pack.
> Make the pack
Change where
Enter Make Esc Back ? Help
=== pack-plan 40x15
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.zip
One ZIP, installed with --from-pack.
> Make the pack
Change where
Enter Make Esc Back ? Help
=== pack-plan 80x24
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.zip
One ZIP, installed with --from-pack.
> Make the pack
Change where
Enter Make Esc Back ? Help
=== pack-plan-parts 40x12
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
In 3 parts of at most 3.9 GB, as FAT32
holds no file of 4 GB.
> Make the pack
Change where
Enter Make Esc Back ? Help
=== pack-plan-parts 40x15
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
In 3 parts of at most 3.9 GB, as FAT32
holds no file of 4 GB.
> Make the pack
Change where
Enter Make Esc Back ? Help
=== pack-plan-parts 80x24
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.part1of3.zip
In 3 parts of at most 3.9 GB, as FAT32 holds no file of 4 GB.
> Make the pack
Change where
Enter Make Esc Back ? Help
=== pack-done 40x12
RetroBIOS: Done
Pack made: 4 files, 1023.4 KB, in 3
parts.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
On the other device, install from it
with --from-pack.
> Close
Enter Close Esc Back ? Help
=== pack-done 40x15
RetroBIOS: Done
Pack made: 4 files, 1023.4 KB, in 3
parts.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
On the other device, install from it
with --from-pack.
> Close
Enter Close Esc Back ? Help
=== pack-done 80x24
RetroBIOS: Done
Pack made: 4 files, 1023.4 KB, in 3 parts.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.part1of3.zip
On the other device, install from it with --from-pack.
> Close
Enter Close Esc Back ? Help
+176 -14
View File
@@ -436,12 +436,12 @@
4 files to download, 1.0 MB
BIOS folder:
~/.config/retroarch/system
> Install
Choose systems
Copy from an old card or a folder
Details
Change
Quit
1-4 of 7
A Install R2 Back L2 Change
=== plan 40x15
RetroBIOS: RetroArch
@@ -455,9 +455,9 @@
Copy from an old card or a folder
Details
Change
More
Quit
A Install R2 Back L2 Change
=== plan 80x24
RetroBIOS: RetroArch
@@ -470,6 +470,7 @@
Copy the BIOS files from an old card or a folder
Details
Change
More
Quit
@@ -482,7 +483,6 @@
A Install R2 Back L2 Change
=== plan-in-place 40x12
RetroBIOS: RetroArch
@@ -494,7 +494,7 @@
> Close
Details
Change
More
A Close R2 Back L2 Change
=== plan-in-place 40x15
@@ -507,7 +507,7 @@
> Close
Details
Change
More
@@ -522,7 +522,7 @@
> Close
Details
Change
More
@@ -1247,7 +1247,7 @@
For the games on this card: yes 412
Only what starts: no
Show the games
1-4 of 9
1-4 of 10
A Install R2 Back L2 Change
=== plan-games 40x15
RetroBIOS: RetroArch
@@ -1255,6 +1255,7 @@
4 files to download, 1.0 MB
BIOS folder:
~/.config/retroarch/system
> Install
For the games on this card: yes 412
Only what starts: no
@@ -1262,8 +1263,7 @@
Choose systems
Copy from an old card or a folder
Details
Change
Quit
1-7 of 10
A Install R2 Back L2 Change
=== plan-games 80x24
RetroBIOS: RetroArch
@@ -1280,6 +1280,7 @@
Copy the BIOS files from an old card or a folder
Details
Change
More
Quit
@@ -1288,7 +1289,6 @@
A Install R2 Back L2 Change
=== games 80x24
RetroBIOS: Games on this card
@@ -1455,7 +1455,7 @@
Backups
Put back a backup
Delete a backup
Make a pack
@@ -1468,7 +1468,7 @@
Backups
Put back a backup
Delete a backup
Make a pack
@@ -1484,7 +1484,7 @@
Backups
Put back a backup
Delete a backup
Make a pack
@@ -1772,3 +1772,165 @@
A Choose R2 Back
=== pack-plan 40x12
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.zip
One ZIP, installed with --from-pack.
> Make the pack
Change where
A Make R2 Back
=== pack-plan 40x15
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.zip
One ZIP, installed with --from-pack.
> Make the pack
Change where
A Make R2 Back
=== pack-plan 80x24
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.zip
One ZIP, installed with --from-pack.
> Make the pack
Change where
A Make R2 Back
=== pack-plan-parts 40x12
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
In 3 parts of at most 3.9 GB, as FAT32
holds no file of 4 GB.
> Make the pack
Change where
A Make R2 Back
=== pack-plan-parts 40x15
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
In 3 parts of at most 3.9 GB, as FAT32
holds no file of 4 GB.
> Make the pack
Change where
A Make R2 Back
=== pack-plan-parts 80x24
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.part1of3.zip
In 3 parts of at most 3.9 GB, as FAT32 holds no file of 4 GB.
> Make the pack
Change where
A Make R2 Back
=== pack-done 40x12
RetroBIOS: Done
Pack made: 4 files, 1023.4 KB, in 3
parts.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
On the other device, install from it
with --from-pack.
> Close
A Close R2 Back
=== pack-done 40x15
RetroBIOS: Done
Pack made: 4 files, 1023.4 KB, in 3
parts.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
On the other device, install from it
with --from-pack.
> Close
A Close R2 Back
=== pack-done 80x24
RetroBIOS: Done
Pack made: 4 files, 1023.4 KB, in 3 parts.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.part1of3.zip
On the other device, install from it with --from-pack.
> Close
A Close R2 Back
+176 -14
View File
@@ -436,12 +436,12 @@
4 files to download, 1.0 MB
BIOS folder:
~/.config/retroarch/system
> Install
Choose systems
Copy from an old card or a folder
Details
Change
Quit
1-4 of 7
Start Install B Back
=== plan 40x15
RetroBIOS: RetroArch
@@ -455,9 +455,9 @@
Copy from an old card or a folder
Details
Change
More
Quit
Start Install B Back
=== plan 80x24
RetroBIOS: RetroArch
@@ -470,6 +470,7 @@
Copy the BIOS files from an old card or a folder
Details
Change
More
Quit
@@ -482,7 +483,6 @@
Start Install B Back
=== plan-in-place 40x12
RetroBIOS: RetroArch
@@ -494,7 +494,7 @@
> Close
Details
Change
More
Start Close B Back
=== plan-in-place 40x15
@@ -507,7 +507,7 @@
> Close
Details
Change
More
@@ -522,7 +522,7 @@
> Close
Details
Change
More
@@ -1305,7 +1305,7 @@
For the games on this card: yes 412
Only what starts: no
Show the games
1-4 of 9
1-4 of 10
Start Install B Back
=== plan-games 40x15
RetroBIOS: RetroArch
@@ -1313,6 +1313,7 @@
4 files to download, 1.0 MB
BIOS folder:
~/.config/retroarch/system
> Install
For the games on this card: yes 412
Only what starts: no
@@ -1320,8 +1321,7 @@
Choose systems
Copy from an old card or a folder
Details
Change
Quit
1-7 of 10
Start Install B Back
=== plan-games 80x24
RetroBIOS: RetroArch
@@ -1338,6 +1338,7 @@
Copy the BIOS files from an old card or a folder
Details
Change
More
Quit
@@ -1346,7 +1347,6 @@
Start Install B Back
=== games 40x12
RetroBIOS: Games on this card
@@ -1571,7 +1571,7 @@
Backups
Put back a backup
Delete a backup
Make a pack
@@ -1584,7 +1584,7 @@
Backups
Put back a backup
Delete a backup
Make a pack
@@ -1600,7 +1600,7 @@
Backups
Put back a backup
Delete a backup
Make a pack
@@ -1888,3 +1888,165 @@
Start Choose B Back
=== pack-plan 40x12
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.zip
One ZIP, installed with --from-pack.
> Make the pack
Change where
Start Make B Back
=== pack-plan 40x15
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.zip
One ZIP, installed with --from-pack.
> Make the pack
Change where
Start Make B Back
=== pack-plan 80x24
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.zip
One ZIP, installed with --from-pack.
> Make the pack
Change where
Start Make B Back
=== pack-plan-parts 40x12
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
In 3 parts of at most 3.9 GB, as FAT32
holds no file of 4 GB.
> Make the pack
Change where
Start Make B Back
=== pack-plan-parts 40x15
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
In 3 parts of at most 3.9 GB, as FAT32
holds no file of 4 GB.
> Make the pack
Change where
Start Make B Back
=== pack-plan-parts 80x24
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.part1of3.zip
In 3 parts of at most 3.9 GB, as FAT32 holds no file of 4 GB.
> Make the pack
Change where
Start Make B Back
=== pack-done 40x12
RetroBIOS: Done
Pack made: 4 files, 1023.4 KB, in 3
parts.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
On the other device, install from it
with --from-pack.
> Close
Start Close B Back
=== pack-done 40x15
RetroBIOS: Done
Pack made: 4 files, 1023.4 KB, in 3
parts.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
On the other device, install from it
with --from-pack.
> Close
Start Close B Back
=== pack-done 80x24
RetroBIOS: Done
Pack made: 4 files, 1023.4 KB, in 3 parts.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.part1of3.zip
On the other device, install from it with --from-pack.
> Close
Start Close B Back
+455
View File
@@ -0,0 +1,455 @@
"""--pack: the choice downloaded into a pack ZIP for another device.
The pack is read back by --from-pack, offline, and must install exactly
what a direct install of the same choice installs. Parts are each a whole
ZIP. Every member is checked against its SHA-1 before the ZIP is closed,
and a failure leaves no file behind.
"""
from __future__ import annotations
import tests # noqa: F401 offline, scratch under tmp/, the suite's own cache
import functools
import hashlib
import http.server
import importlib.util
import io
import json
import os
import shutil
import socket
import subprocess
import sys
import tempfile
import threading
import unittest
import zipfile
from pathlib import Path
from unittest import mock
REPO_ROOT = Path(__file__).resolve().parent.parent
_spec = importlib.util.spec_from_file_location("install", REPO_ROOT / "install.py")
install = importlib.util.module_from_spec(_spec)
_spec.loader.exec_module(install)
def _sha1(data: bytes) -> str:
return hashlib.sha1(data).hexdigest()
def _noise(seed: str, size: int) -> bytes:
"""Bytes deflate cannot shrink."""
return b"".join(hashlib.sha256(f"{seed}{n}".encode()).digest()
for n in range(size // 32))
# dest: (bytes, systems, regions, cores). Two dests share one file: the
# pack stores it once.
PAYLOADS = {
"scph5500.bin": (b"jp bios " * 64, ["sony-playstation"], ["japan"], None),
"scph5501.bin": (b"us bios " * 64, ["sony-playstation"], ["north-america"], None),
"gba_bios.bin": (b"gba bios" * 32, ["nintendo-gba"], None, None),
"pcsx/extra.bin": (b"pcsx extra", ["sony-playstation"], None, ["pcsx_rearmed"]),
"mgba/gba_bios.bin": (b"gba bios" * 32, ["nintendo-gba"], None, ["mgba"]),
}
TREE = {"Sys/GC/font.bin": b"font bytes", "Sys/Wii/setting.txt": b"setting"}
# Files too large for one part of MIN_PART_BYTES together.
BIG = {f"arcade/set{n}.zip": (_noise(str(n), 24 * 1024), ["arcade"], None, None)
for n in range(5)}
class _Quiet(http.server.SimpleHTTPRequestHandler):
def log_message(self, format, *args): # noqa: A002 - stdlib signature
return
def _closed_port() -> int:
with socket.socket() as sock:
sock.bind(("127.0.0.1", 0))
return sock.getsockname()[1]
class Repository(unittest.TestCase):
"""A loopback copy of the repository: a RetroArch list, its files and a
data tree's archive."""
payloads = PAYLOADS
tree = TREE
def setUp(self):
scratch = REPO_ROOT / "tmp"
scratch.mkdir(exist_ok=True)
self.root = Path(tempfile.mkdtemp(dir=scratch))
self.addCleanup(shutil.rmtree, self.root, True)
self.served = self.root / "served"
(self.served / "install").mkdir(parents=True)
(self.served / "bios").mkdir()
handler = functools.partial(_Quiet, directory=str(self.served))
self.httpd = http.server.ThreadingHTTPServer(("127.0.0.1", 0), handler)
threading.Thread(target=self.httpd.serve_forever, daemon=True).start()
self.addCleanup(self.httpd.server_close)
self.addCleanup(self.httpd.shutdown)
self.base = f"http://127.0.0.1:{self.httpd.server_address[1]}"
self.out = self.root / "out"
self.out.mkdir()
self.write_list()
def write_list(self) -> None:
files = []
for dest, (payload, systems, regions, cores) in self.payloads.items():
stored = dest.replace("/", "_")
(self.served / "bios" / stored).write_bytes(payload)
entry = {"dest": dest, "sha1": _sha1(payload), "size": len(payload),
"repo_path": f"bios/{stored}", "cores": cores, "systems": systems}
if regions:
entry.update(regions=regions, region_system_groups=systems)
files.append(entry)
listed: dict = {"manifest_version": 2, "platform": "retroarch", "files": files,
"system_cores": {"sony-playstation": ["pcsx_rearmed"],
"nintendo-gba": ["mgba"], "arcade": ["fbneo"]}}
if self.tree:
with zipfile.ZipFile(self.served / "tree.zip", "w") as archive:
for rel, data in self.tree.items():
archive.writestr(rel, data)
listed["data_directories"] = [{
"ref": "dolphin-sys", "dest": "dolphin-emu", "type": "zip",
"url": f"{self.base}/tree.zip", "systems": ["nintendo-gba"],
"files": {rel: {"sha1": _sha1(data), "size": len(data)}
for rel, data in self.tree.items()}}]
(self.served / "install" / "retroarch.json").write_text(json.dumps(listed))
def env(self, offline: bool = False) -> dict:
env = dict(os.environ)
env.pop(install.OFFLINE_VARIABLE, None)
env["RETROBIOS_BASE_URL"] = self.base
if offline:
env["RETROBIOS_BASE_URL"] = f"http://127.0.0.1:{_closed_port()}"
env["HTTPS_PROXY"] = env["HTTP_PROXY"] = f"http://127.0.0.1:{_closed_port()}"
env[install.OFFLINE_VARIABLE] = "1"
return env
def run_installer(self, *options: str, offline: bool = False,
code: str | None = None) -> subprocess.CompletedProcess:
start = ([sys.executable, "-c", code] if code is not None
else [sys.executable, str(REPO_ROOT / "install.py")])
return subprocess.run(
[*start, "--platform", "retroarch", *options], env=self.env(offline),
capture_output=True, text=True, timeout=120, check=False,
stdin=subprocess.DEVNULL, cwd=str(self.root))
def make(self, *options: str, into: Path | None = None) -> subprocess.CompletedProcess:
proc = self.run_installer("--pack", f"{into or self.out}{os.sep}", *options)
return proc
def installed(self, folder: Path) -> set[tuple[str, str]]:
"""(path, sha1) of every file below folder, the record and backups
the installer keeps beside its files left out."""
return {(path.relative_to(folder).as_posix(), _sha1(path.read_bytes()))
for path in folder.rglob("*")
if path.is_file() and not any("retrobios" in part.lower()
for part in path.relative_to(folder).parts)}
def direct(self, folder: Path, *options: str) -> set[tuple[str, str]]:
proc = self.run_installer("--dest", str(folder), "--yes", *options)
self.assertEqual(proc.returncode, 0, proc.stdout + proc.stderr)
return self.installed(folder)
def from_pack(self, pack: Path, folder: Path, *options: str) -> set[tuple[str, str]]:
proc = self.run_installer("--dest", str(folder), "--from-pack", str(pack), "--yes",
*options, offline=True)
self.assertEqual(proc.returncode, 0, proc.stdout + proc.stderr)
return self.installed(folder)
def packs(self, folder: Path | None = None) -> list[Path]:
return sorted((folder or self.out).iterdir())
class APackInstallsWhatADirectInstallDoes(Repository):
def test_the_whole_list(self):
expected = self.direct(self.root / "direct")
self.assertIn(("dolphin-emu/Sys/GC/font.bin", _sha1(TREE["Sys/GC/font.bin"])),
expected)
proc = self.make()
self.assertEqual(proc.returncode, 0, proc.stdout + proc.stderr)
self.assertEqual([path.name for path in self.packs()], ["RetroArch_BIOS_Pack.zip"])
self.assertIn("Pack made: 6 files", proc.stdout)
self.assertEqual(self.from_pack(self.packs()[0], self.root / "other"), expected)
def test_a_narrowed_choice(self):
options = ("--system", "sony-playstation", "--region", "us")
expected = self.direct(self.root / "direct", *options)
self.assertNotIn("gba_bios.bin", {path for path, _sha1 in expected})
proc = self.make(*options)
self.assertEqual(proc.returncode, 0, proc.stdout + proc.stderr)
pack = self.out / "RetroArch_Custom_BIOS_Pack.zip"
self.assertEqual(self.packs(), [pack])
# The pack carries the choice: no option is needed on the other
# device, and the same options give the same files.
self.assertEqual(self.from_pack(pack, self.root / "plain"), expected)
self.assertEqual(self.from_pack(pack, self.root / "again", *options), expected)
def test_a_file_two_dests_share_is_stored_once(self):
self.assertEqual(self.make().returncode, 0)
with zipfile.ZipFile(self.packs()[0]) as archive:
names = archive.namelist()
listed = json.loads(archive.read("manifest.json"))
self.assertEqual(names[0], "manifest.json")
self.assertIn("gba_bios.bin", names)
self.assertNotIn("mgba/gba_bios.bin", names)
self.assertEqual(listed["platform"], "retroarch")
self.assertEqual(sorted(entry["dest"] for entry in listed["install_list"]["files"]),
sorted(PAYLOADS))
self.assertEqual([entry["ref"] for entry in
listed["install_list"]["data_directories"]], ["dolphin-sys"])
def test_a_pack_made_from_a_pack(self):
"""No network is needed to make a pack of part of a pack."""
self.assertEqual(self.make().returncode, 0)
whole = self.packs()[0]
smaller = self.root / "smaller"
smaller.mkdir()
proc = self.run_installer("--from-pack", str(whole), "--pack", f"{smaller}{os.sep}",
"--system", "nintendo-gba", offline=True)
self.assertEqual(proc.returncode, 0, proc.stdout + proc.stderr)
expected = self.direct(self.root / "direct", "--system", "nintendo-gba")
self.assertEqual(self.from_pack(self.packs(smaller)[0], self.root / "other"),
expected)
def test_a_dry_run_lists_and_writes_nothing(self):
proc = self.make("--dry-run", "--verbose")
self.assertEqual(proc.returncode, 0, proc.stdout + proc.stderr)
self.assertIn("Pack for RetroArch: 6 files", proc.stdout)
self.assertIn("dolphin-emu/Sys/GC/font.bin", proc.stdout)
self.assertEqual(self.packs(), [])
class APackIsDeterministic(Repository):
def test_the_same_choice_gives_the_same_bytes(self):
again = self.root / "again"
again.mkdir()
self.assertEqual(self.make().returncode, 0)
self.assertEqual(self.make(into=again).returncode, 0)
first, second = self.packs()[0], self.packs(again)[0]
self.assertEqual(first.read_bytes(), second.read_bytes())
with zipfile.ZipFile(first) as archive:
infos = archive.infolist()
self.assertEqual({info.date_time for info in infos}, {(1980, 1, 1, 0, 0, 0)})
self.assertEqual({info.external_attr for info in infos}, {0o100644 << 16})
names = [info.filename for info in infos]
self.assertEqual(names[1:], sorted(names[1:]))
class Parts(Repository):
payloads = {**PAYLOADS, **BIG}
def test_each_part_is_a_whole_zip_and_their_union_is_the_pack(self):
whole_dir = self.root / "whole"
whole_dir.mkdir()
self.assertEqual(self.make(into=whole_dir).returncode, 0)
with zipfile.ZipFile(self.packs(whole_dir)[0]) as archive:
whole = {info.filename: archive.read(info) for info in archive.infolist()}
proc = self.make("--split", "64K")
self.assertEqual(proc.returncode, 0, proc.stdout + proc.stderr)
parts = self.packs()
self.assertGreater(len(parts), 1)
count = len(parts)
self.assertEqual([part.name for part in parts],
[f"RetroArch_BIOS_Pack.part{n}of{count}.zip"
for n in range(1, count + 1)])
self.assertIn(f"In {count} parts of at most 64.0 KB.", proc.stdout)
union: dict[str, bytes] = {}
markers = self.root / "markers"
markers.mkdir()
for index, part in enumerate(parts, 1):
self.assertLess(part.stat().st_size, 64 * 1024)
with zipfile.ZipFile(part) as archive:
self.assertIsNone(archive.testzip())
for info in archive.infolist():
data = archive.read(info)
if install._PART_MARKER.match(info.filename):
(markers / info.filename).write_bytes(data)
continue
self.assertNotIn(info.filename, union)
union[info.filename] = data
marker = install.read_part_marker(
markers / f"RetroArch_BIOS_Pack.part{index}of{count}.txt")
self.assertIsNotNone(marker)
self.assertEqual(marker.parts, tuple((p.name, p.stat().st_size) for p in parts))
self.assertEqual(union, whole)
expected = self.direct(self.root / "direct")
self.assertEqual(self.from_pack(parts[1], self.root / "other"), expected)
def test_a_pack_under_the_size_stays_one_zip(self):
proc = self.make("--split", "100M")
self.assertEqual(proc.returncode, 0, proc.stdout + proc.stderr)
self.assertEqual([path.name for path in self.packs()], ["RetroArch_BIOS_Pack.zip"])
def test_a_pack_made_again_in_parts_replaces_the_whole_one(self):
self.assertEqual(self.make().returncode, 0)
self.assertEqual(self.make("--split", "64K").returncode, 0)
self.assertTrue(all(".part" in path.name for path in self.packs()))
def test_a_file_larger_than_a_part_is_refused_before_any_download(self):
self.payloads = {"big.bin": (_noise("x", 80 * 1024), ["arcade"], None, None)}
self.write_list()
proc = self.make("--split", "64K")
self.assertEqual(proc.returncode, 2, proc.stdout + proc.stderr)
self.assertIn("big.bin (80.0 KB) does not fit in a part of 64.0 KB", proc.stderr)
self.assertEqual(self.packs(), [])
# The installer run in a child with FAT32 said of every drive and its
# limit made small: a real 4 GiB pack is out of reach of a test.
FAT_CHILD = """
import importlib.util, sys
spec = importlib.util.spec_from_file_location("install", {script!r})
install = importlib.util.module_from_spec(spec)
spec.loader.exec_module(install)
install.fat32_drive = lambda folder: {fat}
install.FAT_FILE_LIMIT = 100 * 1024
install.FAT_PART_BYTES = 80 * 1024
sys.argv = ["install.py", *sys.argv[1:]]
install.main()
"""
class Fat32(Repository):
payloads = {**PAYLOADS, **BIG}
def child(self, fat: bool) -> str:
return FAT_CHILD.format(script=str(REPO_ROOT / "install.py"), fat=fat)
def test_a_pack_past_the_limit_is_split_by_itself(self):
proc = self.run_installer("--pack", f"{self.out}{os.sep}", code=self.child(True))
self.assertEqual(proc.returncode, 0, proc.stdout + proc.stderr)
parts = self.packs()
self.assertEqual(len(parts), 2)
self.assertIn("In 2 parts of at most 80.0 KB, as FAT32 holds no file of 4 GB.",
proc.stdout)
self.assertTrue(all(part.stat().st_size < 80 * 1024 for part in parts))
def test_another_drive_keeps_one_zip(self):
proc = self.run_installer("--pack", f"{self.out}{os.sep}", code=self.child(False))
self.assertEqual(proc.returncode, 0, proc.stdout + proc.stderr)
self.assertEqual([path.name for path in self.packs()], ["RetroArch_BIOS_Pack.zip"])
self.assertNotIn("FAT32", proc.stdout)
def test_the_mount_table_names_the_drive(self):
table = ("22 1 8:1 / / rw - ext4 /dev/sda1 rw\n"
"36 22 179:1 / /media/me/SD\\040CARD rw,nosuid - vfat /dev/mmcblk0p1 rw\n"
"37 36 179:2 / /media/me/SD\\040CARD/inner rw - exfat /dev/mmcblk0p2 rw\n")
mounts = install.mountinfo_types(table)
self.assertEqual(mounts[1], ("/media/me/SD CARD", "vfat"))
self.assertTrue(install.fat_mounted(Path("/media/me/SD CARD/packs"), mounts))
self.assertFalse(install.fat_mounted(Path("/media/me/SD CARD/inner/x"), mounts))
self.assertFalse(install.fat_mounted(Path("/home/me"), mounts))
listing = "/dev/disk4s1 on /Volumes/CARD (msdos, local, nodev, nosuid)\n"
self.assertTrue(install.fat_mounted(Path("/Volumes/CARD/x"),
install.mount_list_types(listing)))
class AFailureLeavesNothing(Repository):
def test_a_download_that_fails_leaves_no_file(self):
(self.served / "bios" / "scph5501.bin").write_bytes(b"changed on the server")
proc = self.make()
self.assertEqual(proc.returncode, 1, proc.stdout + proc.stderr)
self.assertIn("could not be had: no pack was written", proc.stderr)
self.assertEqual(self.packs(), [])
def test_an_earlier_pack_of_the_name_stays_as_it_was(self):
self.assertEqual(self.make().returncode, 0)
before = self.packs()[0].read_bytes()
(self.served / "bios" / "gba_bios.bin").unlink()
proc = self.make()
self.assertEqual(proc.returncode, 1, proc.stdout + proc.stderr)
self.assertEqual([path.name for path in self.packs()], ["RetroArch_BIOS_Pack.zip"])
self.assertEqual(self.packs()[0].read_bytes(), before)
def test_a_member_whose_bytes_changed_is_refused_before_the_zip_closes(self):
source = self.root / "staged.bin"
source.write_bytes(b"other bytes")
member = install.PackMember("a.bin", _sha1(b"listed bytes"), 11, source)
with self.assertRaises(install.PackError):
install.write_pack(self.out / "RetroArch_BIOS_Pack.zip", b"{}", [member], None)
self.assertEqual(self.packs(), [])
class Events(Repository):
def events(self, *options: str) -> tuple[list[dict], int]:
proc = self.make("--events", *options)
return [json.loads(line) for line in proc.stdout.splitlines()], proc.returncode
def test_the_pack_event(self):
events, code = self.events("--dry-run")
self.assertEqual(code, 0)
self.assertEqual(events[0]["mode"], "pack")
pack = next(event for event in events if event["event"] == "pack")
self.assertEqual(list(pack)[1:], list(install.EVENT_KEYS["pack"]))
self.assertEqual(pack["status"], "planned")
self.assertEqual(pack["files"], 6)
self.assertEqual(pack["size"], 0)
self.assertEqual(self.packs(), [])
events, code = self.events()
self.assertEqual(code, 0)
pack = next(event for event in events if event["event"] == "pack")
self.assertEqual(pack["status"], "written")
self.assertEqual(pack["parts"], [str(self.out / "RetroArch_BIOS_Pack.zip")])
self.assertEqual(pack["size"], self.packs()[0].stat().st_size)
self.assertEqual(events[-1], {"event": "end", "code": 0})
def test_a_failure_is_an_event(self):
(self.served / "bios" / "scph5500.bin").unlink()
events, code = self.events()
self.assertEqual(code, 1)
pack = next(event for event in events if event["event"] == "pack")
self.assertEqual((pack["status"], pack["parts"]), ("failed", []))
self.assertEqual(events[-1], {"event": "end", "code": 1})
class Refusals(Repository):
def test_options_of_this_machine_s_folder_are_refused(self):
for options in (("--check",), ("--dest", str(self.root / "x")),
("--installed-cores",), ("--for-games",), ("--list-systems",)):
with self.subTest(options=options):
proc = self.make(*options)
self.assertEqual(proc.returncode, 2, proc.stderr)
self.assertIn("install.py: error:", proc.stderr)
def test_split_needs_pack_and_a_size(self):
proc = self.run_installer("--split", "1G")
self.assertEqual(proc.returncode, 2)
self.assertIn("--split applies to --pack", proc.stderr)
proc = self.make("--split", "1K")
self.assertEqual(proc.returncode, 2)
self.assertIn("too small", proc.stderr)
def test_a_name_the_reader_would_not_find_is_refused(self):
proc = self.run_installer("--pack", str(self.out / "mine.zip"))
self.assertEqual(proc.returncode, 2)
self.assertIn("_BIOS_Pack.zip", proc.stderr)
def test_a_pack_named_by_the_user_reads_its_platform_inside(self):
named = self.out / "Living_Room_BIOS_Pack.zip"
proc = self.run_installer("--pack", str(named))
self.assertEqual(proc.returncode, 0, proc.stdout + proc.stderr)
pack = install.PackSource([named])
self.addCleanup(pack.close)
self.assertEqual(pack.platforms(), ["retroarch"])
class PartSizes(unittest.TestCase):
def test_a_size_reads_as_bytes_or_with_its_unit(self):
self.assertEqual(install.parse_part_size("1900M"), 1900 * 1024 ** 2)
self.assertEqual(install.parse_part_size("4g"), 4 * 1024 ** 3)
self.assertEqual(install.parse_part_size("70000"), 70000)
for text in ("big", "1K", "-5M"):
with self.subTest(text=text), \
mock.patch("sys.stderr", io.StringIO()), \
self.assertRaises(Exception):
install.parse_part_size(text)
if __name__ == "__main__":
unittest.main()
+140 -9
View File
@@ -1070,6 +1070,9 @@ def golden_states() -> dict:
install.tui_update(states["removal-confirm"], Key("enter"))
states["removal-done"] = removal_done_state()
states["backups"] = backups_state()
states["pack-plan"] = pack_plan_state()
states["pack-plan-parts"] = pack_plan_state(parts=3)
states["pack-done"] = pack_done_state()
return states
@@ -1140,6 +1143,51 @@ def backups_state(purpose: str = "backups") -> install.TuiState:
return state
PACK_PATH = HOME / "Downloads" / "RetroArch_Custom_BIOS_Pack.zip"
def pack_event(status: str, parts: int = 1, size: int = 0) -> dict:
"""The pack event of a dry run (planned) or a run (written), the pack
whole or in parts on a FAT32 card."""
names = ([PACK_PATH] if parts == 1 else
[PACK_PATH.with_name(f"RetroArch_Custom_BIOS_Pack.part{n}of{parts}.zip")
for n in range(1, parts + 1)])
message = ("One ZIP." if parts == 1 else
f"In {parts} parts of at most 3.9 GB, as FAT32 holds no file of 4 GB.")
return {"event": "pack", "platform": "retroarch", "path": str(PACK_PATH), "files": 4,
"bytes": 1049604, "size": size, "parts": [str(name) for name in names],
"status": status, "message": message}
def pack_plan_state(parts: int = 1) -> install.TuiState:
"""More, Make a pack, its dry run read."""
state = checked_state()
rows = install.tui_rows(state)
state.focus["plan"] = [row.action for row in rows].index("more")
assert install.tui_update(state, Key("enter")) == []
rows = install.tui_rows(state)
state.focus["more"] = [row.action for row in rows].index("packmake")
effects = install.tui_update(state, Key("enter"))
assert effects == [("run", "pack_plan")], effects
install.tui_receive(state, ("event", state.run_id, pack_event("planned", parts)))
install.tui_receive(state, ("ended", state.run_id, 0, []))
return state
def pack_done_state() -> install.TuiState:
"""The pack made, in three parts on a FAT32 card."""
state = pack_plan_state(parts=3)
effects = install.tui_update(state, Key("enter"))
assert effects == [("run", "pack")], effects
install.tui_receive(state, ("event", state.run_id, {
"event": "progress", "files_done": 4, "files_total": 4, "bytes_done": 1049604,
"bytes_total": 1049604}))
install.tui_receive(state, ("event", state.run_id,
pack_event("written", 3, size=1048000)))
install.tui_receive(state, ("ended", state.run_id, 0, []))
return state
# 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"]},
@@ -15246,12 +15294,12 @@ class GamesEndToEnd(unittest.TestCase):
SCREEN_WORDS = {
"setup": (29, 36, 34, 34), "platforms": (23, 27, 89, 225), "folder": (27, 27, 25, 25),
"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),
"create": (23, 23, 21, 21), "checking": (18, 18, 17, 17), "plan": (32, 32, 32, 32),
"plan-in-place": (23, 23, 20, 20), "systems": (36, 37, 36, 36),
"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),
"quit": (14, 14, 12, 12), "help": (24, 26, 26, 26), "plan-games": (36, 47, 55, 55),
"games": (36, 45, 44, 44), "plan-details": (30, 30, 29, 29),
"result-details": (30, 30, 19, 19),
# The plan's words, plus the recorded choice by name, its row (the one
@@ -15266,14 +15314,18 @@ SCREEN_WORDS = {
# 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),
# A plan names More (one word) where the folder has a record or a
# backup (design 4.3), the first install's plan unchanged. More's
# four rows, Remove files with each system the record holds and its
# Every plan names More (one word, counted in the plan budgets above):
# a pack can always be made. More's four rows where the folder has a
# record or a backup, then Make a pack (three words), Remove files with each system the record holds and its
# size, the removal plan (what goes, the space freed, the folder, what
# stays and why), its confirm and result, and the backups newest first.
"more": (17, 17, 15, 15), "remove": (31, 31, 29, 29), "removal": (34, 34, 32, 32),
"more": (20, 20, 18, 18), "remove": (31, 31, 29, 29), "removal": (34, 34, 32, 32),
"removal-confirm": (18, 18, 16, 16), "removal-done": (18, 18, 16, 16),
"backups": (24, 24, 22, 22),
# Make a pack: what goes in, its size and setup, where it goes, how it
# is written (one ZIP, or the parts and why), then the result.
"pack-plan": (27, 27, 24, 24), "pack-plan-parts": (39, 39, 35, 35),
"pack-done": (29, 29, 25, 25),
}
@@ -15293,12 +15345,12 @@ class MoreScreens(unittest.TestCase):
self.addCleanup(patcher.stop)
def test_a_plan_names_more_where_it_has_something_to_act_on(self):
self.assertNotIn("more", [row.action for row in install.tui_rows(checked_state())])
self.assertEqual([row.action for row in install.tui_rows(more_state())][-2:],
["more", "quit"])
done = golden_states()["plan-in-place"]
done.has_backups = True
self.assertEqual(install.tui_rows(done)[-1].action, "more")
self.assertEqual([row.action for row in install.tui_rows(more_state("more"))],
["remove", "backups", "putback", "dropbackup", "packmake"])
def test_the_removal_plan_asks_its_own_child(self):
state = removal_state()
@@ -15398,6 +15450,85 @@ class MoreScreens(unittest.TestCase):
self.assertIn("scph5501.bin: changed since it was installed", text)
class PackScreens(unittest.TestCase):
"""More, Make a pack: a dry run says what goes in, the run makes it,
each a child given the plan's choice and none of the folder's options."""
def setUp(self):
patcher = mock.patch.object(install, "_mounted_cards", return_value=[])
patcher.start()
self.addCleanup(patcher.stop)
def test_more_is_on_every_plan_with_make_a_pack(self):
state = checked_state()
self.assertEqual([row.action for row in install.tui_rows(state)][-2:],
["more", "quit"])
state.stack.append("more")
self.assertEqual([row.action for row in install.tui_rows(state)], ["packmake"])
self.assertEqual([row.action for row in install.tui_rows(more_state("more"))][-1],
"packmake")
def test_the_dry_run_takes_the_choice_and_not_the_folder(self):
state = pack_plan_state()
state.regions = ["japan"]
state.passthrough = [("--save-dir", "/saves")]
argv = install.tui_argv(state, "pack_plan", "python", "install.py")
self.assertIn("--region=japan", argv)
self.assertFalse([arg for arg in argv if arg.startswith(("--dest", "--save-dir"))])
# No Downloads folder here: the home folder.
self.assertEqual(argv[-3:], [f"--pack={HOME}{os.sep}", "--dry-run", "--events"])
with mock.patch.object(install, "_is_dir", return_value=True):
self.assertEqual(install.tui_pack_dir(state), HOME / "Downloads")
self.assertEqual([row.action for row in install.tui_rows(state)],
["packgo", "packwhere"])
def test_make_the_pack_runs_it_and_close_ends_on_its_code(self):
state = pack_plan_state()
self.assertEqual(install.tui_update(state, Key("enter")), [("run", "pack")])
self.assertEqual(install.tui_argv(state, "pack", "python", "install.py")[-2:],
["--events", "--yes"])
self.assertIn("Making the pack...", screen_text(install.tui_view(state, 80, 24)))
install.tui_receive(state, ("event", state.run_id, pack_event("written", size=900)))
install.tui_receive(state, ("ended", state.run_id, 0, []))
self.assertIn("Pack made: 4 files, 900 B.", screen_text(install.tui_view(state, 80, 24)))
install.tui_update(state, Key("enter"))
self.assertEqual(state.exit_code, 0)
def test_a_pack_not_made_says_so_and_back_returns_to_more(self):
state = pack_plan_state()
install.tui_update(state, Key("enter"))
failed = {**pack_event("failed"), "parts": [],
"message": "1 file could not be had: no pack was written."}
install.tui_receive(state, ("event", state.run_id, failed))
install.tui_receive(state, ("ended", state.run_id, 1, []))
text = screen_text(install.tui_view(state, 80, 24))
self.assertIn("No pack was made.", text)
self.assertIn("1 file could not be had", text)
install.tui_update(state, Key("esc"))
self.assertEqual(state.screen, "more")
def test_change_where_browses_and_reads_the_plan_again(self):
state = pack_plan_state()
state.focus["packplan"] = 1
with mock.patch.object(install, "_browse_rows", return_value=(
[install.TuiRow("use", "Use this folder")], "")):
install.tui_update(state, Key("enter"))
self.assertEqual((state.screen, state.browse_for), ("browse", "packto"))
state.browse_dir = Path("/media/card")
self.assertEqual(install.tui_update(state, Key("enter")), [("run", "pack_plan")])
self.assertEqual(state.screen, "packplan")
self.assertEqual(install.tui_argv(state, "pack_plan", "python", "install.py")[-3],
f"--pack={Path('/media/card')}{os.sep}")
def test_a_dry_run_that_ends_without_its_event_is_an_error(self):
state = checked_state()
state.stack += ["more"]
state.focus["more"] = 0
install.tui_update(state, Key("enter"))
install.tui_receive(state, ("ended", state.run_id, 2, ["install.py: error: no"]))
self.assertEqual(state.screen, "error")
class ScreenWordBudgets(unittest.TestCase):
def setUp(self):
patcher = mock.patch.object(install, "_mounted_cards", return_value=[])