OK, si on prend au plus simple, dans le DAT (clrmame), il y a un bloc clrmamepro et plusieurs blocs game.
(exemple sur celui fourni avec mamegp2x)
Pour le premier:
clrmamepro (
name "MAME GP2X 4.6"
description "MAME GP2X 4.6 ROMs Not Separated BIOS Datfile"
category "Standard DatFile"
version "<insert version>"
author Franxis
comment "<insert comment>"
)
Pour les autres:
game (
name 1941
description "1941"
year ""
manufacturer ""
rom ( name 41_09.rom size 65536 crc 0x0f9d8527 )
rom ( name 41_18.rom size 131072 crc 0xd1f15aeb )
rom ( name 41_19.rom size 131072 crc 0x15aec3a6 )
rom ( name 41_32.rom size 524288 crc 0x4e9648ca )
rom ( name 41_gfx1.rom size 524288 crc 0xff77985a )
rom ( name 41_gfx3.rom size 524288 crc 0x983be58f )
rom ( name 41_gfx5.rom size 524288 crc 0x01d1cb11 )
rom ( name 41_gfx7.rom size 524288 crc 0xaeaa3509 )
rom ( name 41e_30.rom size 131072 crc 0x9deb1e75 )
rom ( name 41e_31.rom size 131072 crc 0xdf201112 )
rom ( name 41e_35.rom size 131072 crc 0xd63942b3 )
rom ( name 41e_36.rom size 131072 crc 0x816a818f )
)
(nom zip, à l'intérieur nom fichier, taille (octets), crc)
Mais en fait sous clrmame il y a la fonction DIR2DAT dans "profiler" qui à partir de ton dossier roms va te faire le dat correspondant tout seul

-après c'est à nous de nous adapter à ton dat en utilisant ton dat et la fonction "scanner"-
Par contre les dumpgfx n'étant ni dans un zip ni dans un répertoire, je ne sais pas comment il doit les consédérer (et finalement va-t'il les considérer et doit-il les considérer?)