MAME question (directory structure).

fleggett

Gawd
Joined
Nov 30, 2004
Messages
546
Is anyone here familiar with what MAME expects regarding directory structure, CHDs, and parent-child relationships?

I'm at work and don't have the actual text, but when you run a ClrMamePro scan it'll often report that a CHD is missing along with its parent CHD. My confusion is this - are the "child" CHDs suppose to be in the same directory as the parent CHD or do they go in their own subdirectory under the parent? I was thinking the latter based on the scan report text, but now I'm not sure.

Thanks in advance.
 
I've always put the CHD files in the game folder. Afterwards I audit the library and choose the game from the menu. I use MAME 32 though. Not sure about newer versions.
 
I'm still confused. Here're two typical entries that ClrMamePro generates when doing a scan:

Golden Tee Fore! 2003 (v3.00.10) [system: Eagle BIOS - folder: gtfore03 - size: 11mb]
missing set: Golden Tee Fore! 2003 (v3.00.10)
missing rom: g43-us-u.u53 [size: 2176] [CRC32: 51c6f726] [SHA1: 9930337315128f89f7202893fb123ee3f0d33649]
missing chd: golf_fore_2003_v3.00.10.chd [chd-sha1: d789ef86837a5012beb224c487537dd563d93886]

Golden Tee Fore! 2003 (v3.00.09) [system: Eagle BIOS - folder: gtfore03a - parent: gtfore03 - size: 11mb]
missing set: Golden Tee Fore! 2003 (v3.00.09)
missing chd: golf_fore_2003_v3.00.09.chd [chd-sha1: 3c9cf82c3ad87b0d6b5a21089795abd8a08f8dd2]

The way I read the above, it should have the following directory structure:

gtfore03\
---> golf_fore_2003_v3.00.10.chd
---> gtfore03a\
---> golf_fore_2003_v3.00.09.chd​

The reason I ask is because I'm creating a batch file that takes any and all CHDs that a person has from a central folder and moves them to their respective directory positions. So, for the above, the code would be this:

md BIOS
cd BIOS

REM Eagle BIOS
md iteagle
cd iteagle

md gtfore03\gtfore03a
move "%CHDPool%\golf_fore_2003_v3.00.10.chd" gtfore03\.
move "%CHDPool%\golf_fore_2003_v3.00.09.chd" gtfore03\gtfore03a\.

Is that right? I'm pretty sure it is, but I wanted to get verification before I get too knee-deep in this since there are hundreds of CHD files.
 
Back
Top