Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: chris2922 on January 26, 2006, 01:52:19 pm

Title: Sorting out SNAP files.
Post by: chris2922 on January 26, 2006, 01:52:19 pm
I have a snap.zip file for MAME 0.89 (5428files)

I am using MAME 0.36 in a DOS cab im building using ARCADEOS (700ish games).

I would like to remove the PNG files from the 0.89 set that were added after 0.36.  I was hoping clrmamepro would be able to do this, but it appears it cant.

Does anyone know of a way of only keeping the PNG files that have matching files in the roms directory?
Title: Re: Sorting out SNAP files.
Post by: Farmboy90 on January 26, 2006, 02:11:23 pm
I would just write a script that compared the names of the roms to the names of the images and have it move/delte the ones that don't match.

Come to think of it, I think someone already did this....  Let me see if I can search around and find it.
Title: Re: Sorting out SNAP files.
Post by: chris2922 on January 26, 2006, 03:19:14 pm
Ill have a look too now i know what im after.
Im not able to write a script myself so i hope it turns up.
Let me know if you find it.
Title: Re: Sorting out SNAP files.
Post by: BASSOFeeSH on January 26, 2006, 03:29:12 pm
How about using "generic_artwork_renamer"? I think Howard Castro wrote it, but I'm sure a quick forum search will turn something up.  I used it to rename console snaps, but I seem to remember that it might be useful in trimming unwanted/unneeded snaps as well.
Title: Re: Sorting out SNAP files.
Post by: JoyMonkey on January 26, 2006, 03:40:17 pm
Here's how you'd write that script...
You could use something like PrintFolders to make a list of the contents of you 0.36 roms folder. Then edit the file in a text editor; do a find&replace to rename .zip to .png C:\036SNAPS\ , then add the word COPY to the start of each line (you could do this with a little macro in most text editors like Crimson Enditor or Ulta Edit). So now you've got a text file full of lines like COPY pacman.png C:\036SNAPS\ for each 0.36 rom. Save the file in your snaps folder, call it RUNME.BAT.
Make a folder on your C drive called 036SNAPS.
Run the RUNME.BAT that you created and it'll copy the png's for every 0.36 rom you've got into the C:\036SNAPS folder.
Title: Re: Sorting out SNAP files.
Post by: chris2922 on January 26, 2006, 04:42:17 pm
I had no idead there was a function like "print folders".
I have no problem with batch files so if i can output the contents of my roms folder as a text file, im away.
I presume the print folders command is a mame switch?
Title: Re: Sorting out SNAP files.
Post by: JoyMonkey on January 26, 2006, 06:12:55 pm
I had no idead there was a function like "print folders".
I have no problem with batch files so if i can output the contents of my roms folder as a text file, im away.
I presume the print folders command is a mame switch?

Nope, it's a seperate program. You can download a trial here: http://www.stratopoint.com/pfolders.htm
Title: Re: Sorting out SNAP files.
Post by: chris2922 on January 26, 2006, 06:47:28 pm
Argh, a Windows program!
Looks like im pulling the hard disk from my dos rig again.
Thanks for the help - now i can streamline that unnecessarily big 80mb snap directory.
Another small step closer...