Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Sorting out SNAP files.  (Read 1603 times)

0 Members and 1 Guest are viewing this topic.

chris2922

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 138
  • Last login:March 26, 2023, 01:09:41 pm
  • Silverline Jamma Cab
Sorting out SNAP files.
« 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?

Farmboy90

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 294
  • Last login:June 26, 2006, 12:15:04 am
  • My cab is done... Pics coming soon!!
Re: Sorting out SNAP files.
« Reply #1 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.

chris2922

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 138
  • Last login:March 26, 2023, 01:09:41 pm
  • Silverline Jamma Cab
Re: Sorting out SNAP files.
« Reply #2 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.

BASSOFeeSH

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 255
  • Last login:May 29, 2009, 12:46:42 am
  • TD-2779
    • Trooper Armor
Re: Sorting out SNAP files.
« Reply #3 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.

JoyMonkey

  • Voodoo Wiki Master . . .
  • Wiki Master
  • Trade Count: (+5)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 2899
  • Last login:June 16, 2025, 09:16:27 pm
  • Candy is Dandy but Liquor is Quicker
    • JoyMonkey.com
Re: Sorting out SNAP files.
« Reply #4 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.

chris2922

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 138
  • Last login:March 26, 2023, 01:09:41 pm
  • Silverline Jamma Cab
Re: Sorting out SNAP files.
« Reply #5 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?

JoyMonkey

  • Voodoo Wiki Master . . .
  • Wiki Master
  • Trade Count: (+5)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 2899
  • Last login:June 16, 2025, 09:16:27 pm
  • Candy is Dandy but Liquor is Quicker
    • JoyMonkey.com
Re: Sorting out SNAP files.
« Reply #6 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

chris2922

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 138
  • Last login:March 26, 2023, 01:09:41 pm
  • Silverline Jamma Cab
Re: Sorting out SNAP files.
« Reply #7 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...