feat: install the fewest files for a card's games

--for-games --required-only on a dArkOS card from a computer kept every
file of the list: --dest skipped the card's detection, so its rom
folders were never found. The games part beside the BIOS folder now
names them. The manifest marks a data tree every core runs without
(optional), and --required-only leaves it out: one GBA and one SNES game
took FBNeo's cheats and samples, 3,472 files no game opened.
This commit is contained in:
Abdessamad Derraz committed 2026-11-06 19:58:41 +01:00
1 parent adce8dd0d4
commit 072380c268
24 files changed
+184 -78

No files matched your search

+12
View File
@@ -12912,6 +12912,18 @@ class DriveIsACardByItsFiles(unittest.TestCase):
self.assertEqual([install.card_system(mount) for mount in mounts],
[None, None, None])
def test_a_dest_on_a_games_part_reads_its_rom_folders(self):
"""--dest EASYROMS/bios --for-games from a computer: detection never
ran on the card, the generic RetroArch folders were tried, and the
run kept every file of the list."""
arkos = games_part(self.root / "media" / "EASYROMS")
index = {"setups": {"arkos": {}, "retroarch": {}}}
with mock.patch.object(install, "_mount_points", return_value=frozenset()), \
mock.patch.object(install, "_drive_not_removable", return_value=False):
self.assertEqual(install.games_setups(index, "retroarch", arkos / "bios"), ["arkos"])
self.assertEqual(install.games_setups(index, "retroarch", self.root / "bios"),
["retroarch"])
def test_a_card_beside_a_data_drive_comes_first(self):
"""The ArkOS card and the data drive mounted,
the data drive sorted first and took Enter. The card comes first in