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: Deleting ROMs based on mame.xml file  (Read 3950 times)

0 Members and 1 Guest are viewing this topic.

tommytutone

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 11
  • Last login:August 01, 2014, 07:14:12 am
Deleting ROMs based on mame.xml file
« on: February 05, 2013, 09:18:20 pm »
I hope this makes sense. I have a large folder with MAME ROMs, and the MAME.xml file that lists them all. I am going through the .xml file, deleting fruit machines, pachinko, etc. I would like to delete the ROM files themselves (since they take up space but will never be played) based on the changes made to the .xml file. Is there a tool that will make this happen?

I know you can go the other way around, building an .xml file based on the ROMs you own, but I'm hoping to go backwards, so to speak.

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9272
  • Last login:Today at 06:12:23 am
  • ...
Re: Deleting ROMs based on mame.xml file
« Reply #1 on: February 05, 2013, 11:04:09 pm »
Romlister can make a batch file that copies only games that are included in the xml file over to a new folder.
You just use your modified xml file as the source.

On MAME v.146, I went round and round modifying the xml file by hand and through romlister.
It didn't like using a Mala xml as the source, but somehow I got it to work.
Never did get the xml file small enough to attach to a post.  :lol

NOP

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 916
  • Last login:September 19, 2017, 08:22:27 pm
  • I stole my avatar.
    • winterMAME
Re: Deleting ROMs based on mame.xml file
« Reply #2 on: February 07, 2013, 08:50:52 pm »
Totally doable with romlister.

1) take your full xml file, merge it with the .ini files.
2) in romlister's main GUI, select all the genres you want *removed* from your list in the category section.
3) in the -find window remove all the text except the genres that you're trying to eliminate.  You'll end up with a chunk of text that looks like this:

 ('BIOS' | quiz | tabletop | Fruit_Machines)

4) put a ! (a NOT) in front of that text:
! ('BIOS' | quiz | tabletop | Fruit_Machines)

5) hit the go button to make a list.  the list now contains everything except the things you've specified.

6) Export that list as XML.

tada!