qmc2 / qmc2-mame-fe

QMC2 - M.A.M.E. Catalog / Launcher II
41 stars 3 forks source link

ROM Collection Rebuilder: Place ROM files (in .zip, .7z) in sub-dirs #10

Closed qmc2 closed 2 years ago

qmc2 commented 2 years ago

I just realized that ROM files should contain a sub-dir structure - at least some files have it. For instance

rene@marvin:/home/games/mame> unzip -t tmp/new-roms/roms/kof2003.zip 
Archive:  tmp/new-roms/roms/kof2003.zip
TORRENTZIPPED-02DE835D
    testing: 271-c1c.c1               OK
    testing: 271-c2c.c2               OK
    testing: 271-c3c.c3               OK
    testing: 271-c4c.c4               OK
    testing: 271-c5c.c5               OK
    testing: 271-c6c.c6               OK
    testing: 271-c7c.c7               OK
    testing: 271-c8c.c8               OK
    testing: 271-m1c.m1               OK
    testing: 271-p1c.p1               OK
    testing: 271-p2c.p2               OK
    testing: 271-p3c.p3               OK
    testing: 271-v1c.v1               OK
    testing: 271-v2c.v2               OK
    testing: kf2k3bl/2k3-m1.bin       OK
    testing: kf2k3bl/2k3-p1.bin       OK
    testing: kf2k3bl/2k3-p2.bin       OK
    testing: kf2k3bl/2k3-s1.bin       OK
    testing: kf2k3bla/2k3-p1bl.bin    OK
    testing: kf2k3bla/2k3-p2bl.bin    OK
    testing: kf2k3bla/2k3-p3bl.bin    OK
    testing: kf2k3pl/2k3-p1pl.bin     OK
    testing: kf2k3pl/2k3-s1pl.bin     OK
    testing: kf2k3upl/2k3-p1up.bin    OK
    testing: kf2k3upl/2k3-s1up.bin    OK
    testing: kof2003h/271-c1k.c1      OK
    testing: kof2003h/271-c2k.c2      OK
    testing: kof2003h/271-c3k.c3      OK
    testing: kof2003h/271-c4k.c4      OK
    testing: kof2003h/271-c5k.c5      OK
    testing: kof2003h/271-c6k.c6      OK
    testing: kof2003h/271-c7k.c7      OK
    testing: kof2003h/271-c8k.c8      OK
    testing: kof2003h/271-m1k.m1      OK
    testing: kof2003h/271-p1k.p1      OK
    testing: kof2003h/271-p2k.p2      OK
    testing: kof2003h/271-p3k.p3      OK
No errors detected in compressed data of tmp/new-roms/roms/kof2003.zip.

Do the same thing if the XML data tells us to do so, don't put all files in one directory.

qmc2 commented 2 years ago

Nope. This is no (or not yet an) issue. QMC2 does it correctly, according to the XML.