mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-06 01:53:56 -06:00
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:
1 parent
d7903e1a31
commit
b2e2fb7ebb
2 files changed
+4
-3
No files matched your search
@@ -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
|
||||
|
||||
@@ -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)
|
||||
):
|
||||
|
||||
Reference in new issue
Block a user