fix: the emucorex PS2 image is found by content

FindBiosImage (pcsx2/ps2/BiosTools.cpp:278-302 under app/src/main/cpp/pcsx2 at bda532f3) keeps the first 2 to 8 MB file with a romdir, whatever its name, as upstream PCSX2 does. The guard reads entry-level agnostic flags too, which is how it surfaced.
This commit is contained in:
Abdessamad Derraz committed 2026-11-06 04:12:41 +01:00
1 parent d7903e1a31
commit b2e2fb7ebb
2 files changed
+4 -3

No files matched your search

+1
View File
@@ -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
+3 -3
View File
@@ -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)
):