mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-10 21:43:23 -05:00
feat: offer the files no platform system owns
This commit is contained in:
1 parent
788a6dd4df
commit
6fca4149f5
5 files changed
+49
-14
No files matched your search
@@ -106,6 +106,7 @@ class Narrowing(unittest.TestCase):
|
||||
]
|
||||
OMITTED = [
|
||||
{"dest": "scph5502.bin", "name": "scph5502.bin", "system": "sony-playstation",
|
||||
"systems": ["sony-playstation"],
|
||||
"required": True, "reason": "not_found", "cores": None,
|
||||
"regions": ["europe"], "region_system_groups": ["sony-playstation"]},
|
||||
]
|
||||
@@ -143,6 +144,19 @@ class Narrowing(unittest.TestCase):
|
||||
self.assertIn("scph5500.bin", files)
|
||||
self.assertIn("scph5501.bin", files)
|
||||
|
||||
def test_other_holds_what_no_platform_system_owns(self):
|
||||
files = [
|
||||
{"dest": "pak0.pak", "size": 1, "cores": ["tyrquake"]},
|
||||
{"dest": "gba_bios.bin", "size": 1, "cores": None,
|
||||
"systems": ["nintendo-gba"]},
|
||||
]
|
||||
self.assertEqual(install.available_choices(files, [])["systems"],
|
||||
["nintendo-gba", "other"])
|
||||
kept, _ = install.narrow(files, [], ["nintendo-gba"], [], [])
|
||||
self.assertEqual([f["dest"] for f in kept], ["gba_bios.bin"])
|
||||
kept, _ = install.narrow(files, [], ["other"], [], [])
|
||||
self.assertEqual([f["dest"] for f in kept], ["pak0.pak"])
|
||||
|
||||
def test_a_core_variant_competes_across_systems(self):
|
||||
"""PicoDrive files its US Mega CD BIOS under sega-segacd and the EU
|
||||
one under sega-mega-cd, one variant group. The pack groups every core
|
||||
|
||||
Reference in new issue
Block a user