MAMEWorld >> EmuChat
Index   Flat Mode Flat  

Luca Elia
Mame dev
Reged: 10/28/07
Posts: 81
Loc: Naples, Italy
Send PM
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).







Entire thread
Subject Posted by Posted on
* Prototype.ini Catlist Big Karnak 08/02/14 05:52 AM
. * Re: Prototype.ini Catlist Luca Elia  08/02/14 01:51 PM
. * Re: Prototype.ini Catlist SmitdoggAdministrator  08/02/14 06:21 AM

Extra information Permissions
Moderator:  Robbbert, Tafoid 
1 registered and 117 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 1655