mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-18 01:13:30 -05:00
fix: keep both cases on lakka and retropie
Both run on Linux but inherited RetroArch's case folding, so a core file differing from a platform name only by case left their packs: MesenCE's bios.col and np2kai's lowercase 2608_*.wav, which those cores open with that exact case. They are now case-sensitive, the shared groups fold only where the platform does, and Lakka gets its own pack instead of sharing RetroArch's.
This commit is contained in:
1 parent
08b239f22a
commit
6e8f2df24f
8 files changed
+91
-42
No files matched your search
@@ -62,5 +62,35 @@ class AChildLeavesItsParentAlone(unittest.TestCase):
|
||||
self.assertEqual(child["systems"]["sys-a"]["files"], [{"name": "child.bin"}])
|
||||
|
||||
|
||||
|
||||
class ALinuxPlatformKeepsBothCases(unittest.TestCase):
|
||||
"""Lakka and RetroPie inherited RetroArch's case folding although both
|
||||
run on Linux: np2kai opens 2608_bd.wav and MesenCE bios.col with that
|
||||
exact case, and only System.dat's 2608_BD.WAV and BIOS.col shipped."""
|
||||
|
||||
def setUp(self):
|
||||
self.addCleanup(common._platform_config_cache.clear)
|
||||
common._platform_config_cache.clear()
|
||||
|
||||
def test_the_linux_platforms_do_not_fold(self):
|
||||
platforms = str(REPO_ROOT / "platforms")
|
||||
self.assertTrue(common.load_platform_config("retroarch", platforms)["case_insensitive_fs"])
|
||||
for name in ("lakka", "retropie"):
|
||||
with self.subTest(platform=name):
|
||||
config = common.load_platform_config(name, platforms)
|
||||
self.assertFalse(config["case_insensitive_fs"])
|
||||
dests = {
|
||||
f.get("destination", f.get("name"))
|
||||
for system in config["systems"].values() for f in system["files"]
|
||||
}
|
||||
self.assertTrue({"np2kai/2608_BD.WAV", "np2kai/2608_bd.wav"} <= dests)
|
||||
|
||||
def test_lakka_does_not_share_retroarchs_pack(self):
|
||||
groups = common.group_identical_platforms(
|
||||
["retroarch", "lakka"], str(REPO_ROOT / "platforms")
|
||||
)
|
||||
self.assertEqual(sorted(g for g, _rep in groups), [["lakka"], ["retroarch"]])
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Reference in new issue
Block a user