fix: teknoparrot's COH-H image is found by content

The entry documents the pcsx2x6 component, whose FindBiosImage (pcsx2/ps2/BiosTools.cpp:268-291 at 583f0e90) takes the first 4 to 8 MB romdir image whatever its name. pcsx2x6.yml already said so, and the RetroBat truth gave the file two identities. The guard no longer needs an agnostic flag to read an entry.
This commit is contained in:
Abdessamad Derraz committed 2026-11-06 04:15:08 +01:00
1 parent b2e2fb7ebb
commit f6acd96c78
2 files changed
+5 -3

No files matched your search

+1
View File
@@ -158,6 +158,7 @@ files:
# pcsx2x6 component, System 246/256 (RetroBat core pcsx2x6)
- name: COH-H31100.rom0
found_by: content
path: "pcsx2x6/TeknoParrot/bios/COH-H31100.rom0"
system: namco-system246
required: true
+4 -3
View File
@@ -7089,11 +7089,12 @@ class Ps2BiosImagesAreFoundByContent(unittest.TestCase):
named = []
for path in sorted((ROOT / "emulators").glob("*.yml")):
profile = yaml.safe_load(path.read_text(encoding="utf-8")) or {}
agnostic = profile.get("bios_mode") == "agnostic"
# Whatever the profile's own flags: TeknoParrot documents its
# pcsx2x6 component, whose scan is the same (BiosTools.cpp:268-291
# at 583f0e90), and carries no agnostic flag.
for entry in profile.get("files") or []:
if (
(agnostic or entry.get("agnostic"))
and entry.get("min_size") in (2097152, 4194304)
entry.get("min_size") in (2097152, 4194304)
and entry.get("max_size") == 8388608
and opens_by_name(entry, profile)
):