mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-23 20:29:06 -05:00
fix: read pcsx_rearmed us slot as the default
CheckCdrom sets PSX_REGION_US before it reads the licence, and only "Inc." or "Euro pe" move it (libpcsxcore/misc.c:422-453). A Latin American disc boots the US slot, so its four BIOS images carry latin-america and --region br,jp keeps them.
This commit is contained in:
1 parent
4e8d375074
commit
e318bb4503
2 files changed
+25
-5
No files matched your search
@@ -889,6 +889,8 @@ class RegionalRequestsKeepWhatTheCodeLoads(unittest.TestCase):
|
||||
("ace-dl", ["france"], "private/firmware/Amstrad_s4.cpr"),
|
||||
("duckstation", ["brazil"], "scph5501.bin"),
|
||||
("duckstation", ["south-korea"], "scph5500.bin"),
|
||||
("pcsx_rearmed", ["brazil", "japan"], "scph5501.bin"),
|
||||
("pcsx_rearmed", ["brazil", "japan"], "scph1001.bin"),
|
||||
("blastem", ["australia", "north-america"], "bios_CD_E.bin"),
|
||||
("kega-fusion", ["australia", "north-america"], "eu_mcd1_9210.bin"),
|
||||
)
|
||||
@@ -1118,6 +1120,24 @@ class MegaCdEuropeServesOceania(unittest.TestCase):
|
||||
self.assertEqual(narrow, [])
|
||||
|
||||
|
||||
class PcsxRearmedUsSlotIsTheDefault(unittest.TestCase):
|
||||
"""CheckCdrom sets PSX_REGION_US before reading the licence and only
|
||||
"Inc." or "Euro pe" move it (libpcsxcore/misc.c:422-453): a disc of any
|
||||
other market boots the US slot."""
|
||||
|
||||
def test_every_us_slot_bios_includes_latin_america(self):
|
||||
from common import load_emulator_profiles
|
||||
|
||||
tagged = [
|
||||
f for f in load_emulator_profiles("emulators")["pcsx_rearmed"]["files"]
|
||||
if "north-america" in (f.get("region") or [])
|
||||
]
|
||||
self.assertEqual(len(tagged), 4)
|
||||
for entry in tagged:
|
||||
with self.subTest(name=entry["name"]):
|
||||
self.assertIn("latin-america", entry["region"])
|
||||
|
||||
|
||||
class FusionSmsExportBiosFollowsTheSetting(unittest.TestCase):
|
||||
"""Kega Fusion tells a Japanese Master System cart from an export one by
|
||||
the header, then picks USA or EUR from its CountryOrder setting or a CRC32
|
||||
|
||||
Reference in new issue
Block a user