mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-10 13:33:24 -05:00
fix: stop a romset member claiming a bios slot
This commit is contained in:
1 parent
1c4eb8adec
commit
c99e292a4d
2 files changed
+56
-19
No files matched your search
@@ -179,6 +179,26 @@ class TestConflicts(unittest.TestCase):
|
||||
slots.find_conflicts(self._config("m" * 32), profile, REGIONS_DB), []
|
||||
)
|
||||
|
||||
def test_a_rom_inside_a_romset_claims_nothing_of_its_own(self):
|
||||
"""The archive occupies the destination, not the ROM it holds.
|
||||
|
||||
FBNeo declares msx.rom and kanji.rom with archive: msx.zip and no
|
||||
path, so the member was claimed at the platform's BIOS root and
|
||||
contradicted whatever really lives there.
|
||||
"""
|
||||
profile = {
|
||||
"fbneo": {
|
||||
"type": "libretro",
|
||||
"files": [
|
||||
{"name": "IPL.bin", "archive": "romset.zip"},
|
||||
],
|
||||
}
|
||||
}
|
||||
self.assertEqual(
|
||||
slots.find_conflicts(self._config("m" * 32), profile, REGIONS_DB), []
|
||||
)
|
||||
self.assertEqual(slots.profile_claims(profile, REGIONS_DB), [])
|
||||
|
||||
def test_base_destination_prefixes_both_sides(self):
|
||||
conflicts = slots.find_conflicts(
|
||||
self._config("m" * 32),
|
||||
|
||||
Reference in new issue
Block a user