|
Re: Prototype.ini Catlist
08/02/14 01:51 PM
|
|
|
> I want to make a Prototype.ini catlist file. How can I achieve this without having to > go through the slow, painstaking process of locating, copy and pasting all the > prototype set names into a new INI file... that would take forever since there are > 189 prototypes.
Quick and dirty from a Linux terminal:
Code:
awk -F'"' '/GAME[A-Z_\s]*\(/{ split($0,a,","); set=a[2]; gsub(/^ +/,"",set); gsub(/ +$/,"",set); name=$4; if (index(tolower(name),"prototype")!= 0) print set }' src/mame/drivers/* >Prototype.ini
assuming you have the source code in the src directory.
If you're on Windows just install Cygwin (and e.g. cd /cygdrive/C/Mame first).
|
|