mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-07 10:33:46 -06:00
fix: let agnostic profiles claim no slot
A filename-agnostic profile ships its scan candidates, never its named entries, and the gap report skips it whole. Its entries no longer arbitrate a destination: RetroArch keeps the GameIndex.yaml it declares instead of the ARMSX2 copy.
This commit is contained in:
1 parent
a58b65754b
commit
d41933cdcf
2 files changed
+18
No files matched your search
@@ -175,6 +175,10 @@ def profile_claims(
|
|||||||
for emu_name, profile in sorted(profiles.items()):
|
for emu_name, profile in sorted(profiles.items()):
|
||||||
if profile.get("type") in ("launcher", "alias"):
|
if profile.get("type") in ("launcher", "alias"):
|
||||||
continue
|
continue
|
||||||
|
# The gap report skips a filename-agnostic profile whole: the builder
|
||||||
|
# carries its scan candidates, never its named entries.
|
||||||
|
if profile.get("bios_mode") == "agnostic":
|
||||||
|
continue
|
||||||
is_standalone = runs_standalone(emu_name, profile, standalone_cores)
|
is_standalone = runs_standalone(emu_name, profile, standalone_cores)
|
||||||
claims.extend(
|
claims.extend(
|
||||||
_archive_claims(
|
_archive_claims(
|
||||||
|
|||||||
@@ -310,6 +310,20 @@ class TestConflicts(unittest.TestCase):
|
|||||||
)
|
)
|
||||||
self.assertEqual(slots.profile_claims(profile, REGIONS_DB), [])
|
self.assertEqual(slots.profile_claims(profile, REGIONS_DB), [])
|
||||||
|
|
||||||
|
def test_a_filename_agnostic_profile_claims_nothing(self):
|
||||||
|
"""The gap report skips a `bios_mode: agnostic` profile whole: the
|
||||||
|
builder carries its scan candidates, never its named entries.
|
||||||
|
ARMSX2's GameIndex.yaml replaced the one RetroArch declares."""
|
||||||
|
profile = self._profile("GC/JAP/IPL.bin")
|
||||||
|
self.assertTrue(
|
||||||
|
slots.find_conflicts(self._config("m" * 32), profile, REGIONS_DB)
|
||||||
|
)
|
||||||
|
profile["dolphin"]["bios_mode"] = "agnostic"
|
||||||
|
self.assertEqual(slots.profile_claims(profile, REGIONS_DB), [])
|
||||||
|
self.assertEqual(
|
||||||
|
slots.find_conflicts(self._config("m" * 32), profile, REGIONS_DB), []
|
||||||
|
)
|
||||||
|
|
||||||
def test_base_destination_prefixes_both_sides(self):
|
def test_base_destination_prefixes_both_sides(self):
|
||||||
conflicts = slots.find_conflicts(
|
conflicts = slots.find_conflicts(
|
||||||
self._config("m" * 32),
|
self._config("m" * 32),
|
||||||
|
|||||||
Reference in new issue
Block a user