fix: the collection DAT names sets by subfolder

The collection DAT named its sets "Sony - PlayStation", and the data page said it audits a copy of bios/. clrmamepro and RomVault looked for a folder of that name and reported the 330 sets missing. A Logiqx set name writes a subfolder with a backslash: Sony\PlayStation.
This commit is contained in:
Abdessamad Derraz committed 2026-10-20 06:17:16 +02:00
1 parent c64716d90e
commit 08396be3c6
2 files changed
+14 -8

No files matched your search

+5 -3
View File
@@ -4901,9 +4901,11 @@ class TheCollectionShipsADat(unittest.TestCase):
dat = parse_logiqx(collection_dat(db, "2026-10-18T07:00:00Z"))
self.assertEqual(dat.version, "20261018")
roms = {(r.game, r.name): r for r in dat.roms}
self.assertIn(("Sony - PlayStation", "scph5501.bin"), roms)
self.assertIn(("Nintendo - GameCube", "GC\\USA\\IPL.bin"), roms)
self.assertEqual(roms[("Sony - PlayStation", "scph5501.bin")].crc32, "8d8cb7e4")
# The set name is the subfolder a copy of bios/ holds: named
# "Sony - PlayStation", clrmamepro looked beside Sony/ for it.
self.assertIn(("Sony\\PlayStation", "scph5501.bin"), roms)
self.assertIn(("Nintendo\\GameCube", "GC\\USA\\IPL.bin"), roms)
self.assertEqual(roms[("Sony\\PlayStation", "scph5501.bin")].crc32, "8d8cb7e4")