diff --git a/emulators/emucorex.yml b/emulators/emucorex.yml index 9effe6e6b..0c0a34738 100644 --- a/emulators/emucorex.yml +++ b/emulators/emucorex.yml @@ -146,6 +146,7 @@ notes: | files: - name: ps2-0230a-20080220.bin + found_by: content path: bios/ps2-0230a-20080220.bin system: sony-playstation-2 agnostic: true diff --git a/tests/test_audit_regressions.py b/tests/test_audit_regressions.py index c11a709c2..39935fe74 100644 --- a/tests/test_audit_regressions.py +++ b/tests/test_audit_regressions.py @@ -7089,11 +7089,11 @@ class Ps2BiosImagesAreFoundByContent(unittest.TestCase): named = [] for path in sorted((ROOT / "emulators").glob("*.yml")): profile = yaml.safe_load(path.read_text(encoding="utf-8")) or {} - if profile.get("bios_mode") != "agnostic": - continue + agnostic = profile.get("bios_mode") == "agnostic" for entry in profile.get("files") or []: if ( - entry.get("min_size") in (2097152, 4194304) + (agnostic or entry.get("agnostic")) + and entry.get("min_size") in (2097152, 4194304) and entry.get("max_size") == 8388608 and opens_by_name(entry, profile) ):