2010-11-26, 22:51
hmmmm not sure -romident would do it.. unless possible if the rom image files are extracted from the zips (if your run mame that way). Then grab the string from it checking the rom files to see if you have a compatible rom.
from mame developer site
# If you have an EPROM programmer, you can read the ROMs from your PCB to see if they are a match for what is currently supported in MAME, or if they are an alternate revision. Use mame -romident to identify ROM images that are dumped.
edit:
this might work better...
mame -listfull dkong
Name: Description:
dkong "Donkey Kong (US set 1)"
or mame -listxml dkong
gives u a long XML to work with.. plus it gives you Description and year and manufacturer already in the XML
just playing around. trying to learn a little about python. but came up with something like this. just not sure where i would put it in this script..
mame -listxml dkong|python test.py
test.py
results
['Donkey Kong (US set 1)']
from mame developer site
# If you have an EPROM programmer, you can read the ROMs from your PCB to see if they are a match for what is currently supported in MAME, or if they are an alternate revision. Use mame -romident to identify ROM images that are dumped.
edit:
this might work better...
mame -listfull dkong
Name: Description:
dkong "Donkey Kong (US set 1)"
or mame -listxml dkong
gives u a long XML to work with.. plus it gives you Description and year and manufacturer already in the XML
just playing around. trying to learn a little about python. but came up with something like this. just not sure where i would put it in this script..
mame -listxml dkong|python test.py
test.py
Quote:import os
import sys
import re
data=sys.stdin.read()
name = re.findall( "<description>(.*?)</description>", data )
print name
results
['Donkey Kong (US set 1)']