Python script to clean clones out of a MAME romset
Here's a Python script to remove clones from a MAME romset. Not always advisable, but if you want to, here's how you do it. Personally, my use case was to build a split FBNEO romset with clrmamepro, remove clones from that, and then build a RetroArch playlist.
It takes two parameters. The first is the output of "mame -listxml", redirected to a file. The second is the directory of ROMs that you want to clean. The output is a list of files to delete (which you for-loop or xargs over). Code:
#!/usr/bin/env python3 |
Too late to edit this, but I just noticed this mistake:
Code:
with open(args.dat) as f: |
All times are GMT -5. The time now is 11:28 PM. |