Author Topic: FBA-XXX driverlist.h generator  (Read 6700 times)

Offline iq_132

  • Administrator
  • *****
  • Posts: 3760
  • Karma: +409/-0
  • Definitely not Dink!
    • NeoSource
FBA-XXX driverlist.h generator
« on: June 14, 2008, 04:14:37 PM »
Quote
What is this?
-----------
This program generates the driverlist.h needed by fba-xxx rather than doing it by hand.

It does this by going through the fba.vcproj and finding every d_XXXX.cpp file and
then going through each d_XXXX.cpp file and stripping out the driver info they should
contain.

It then takes the driverlist (and the titles for each game) and alphabetizes the list
by the title for each game.

Last, it generates src\burn\driverlist.h


Usage:
-----------
Just put this program in the same directory as your fba.vcproj and run it.
There are no command line switches, any options have to be set by recompiling the source.


How do I compile the source?
-----------
I use gcc to compile it...
gcc drvlistgen.cpp -O3 -o drvlistgen.exe


Who wrote this?
-----------
IQ_132
http://neosource.1emu.net/


Bugs?
-----------
Report them at:
http://neo-source.com/


License?
-----------
This program is licensed under the WTFPL with two additional stipulations:
1. You cannot claim this code as your own (I don't care about credits, but you can't take credit).
2. You cannot use this code for monetary gain (unless you split it with me :D).
http://sam.zoy.org/wtfpl/


Offline kenshiro

  • Expert
  • *****
  • Posts: 145
  • Karma: +21/-0
Re: FBA-XXX driverlist.h generator
« Reply #1 on: June 16, 2008, 09:04:02 AM »
In five seconds i've generated a nice, clean and sexy driverlist lol  :biggrin:. Updating all my Neogeo drivers to the last MAME version by only one clic, that's too good :biggrin:

This tool is definitly the best friend of forgetful people like me (lazy too  :biggrin:)

Great job iq :wink:


Offline kenshiro

  • Expert
  • *****
  • Posts: 145
  • Karma: +21/-0
Re: FBA-XXX driverlist.h generator
« Reply #2 on: June 18, 2008, 10:25:36 AM »
I made a little adjustement to perfectly align the games titles  :cool:

Offline iq_132

  • Administrator
  • *****
  • Posts: 3760
  • Karma: +409/-0
  • Definitely not Dink!
    • NeoSource
Re: FBA-XXX driverlist.h generator
« Reply #3 on: June 18, 2008, 03:05:07 PM »
Cool :)


Offline iq_132

  • Administrator
  • *****
  • Posts: 3760
  • Karma: +409/-0
  • Definitely not Dink!
    • NeoSource
Re: FBA-XXX driverlist.h generator
« Reply #4 on: July 03, 2008, 08:45:12 PM »
Quote
03-07-08 revision 1
   adjusted alignment of titles (credits to Kenshiro :))
   added comments
   modified alphabetizing, should reduce ram (and increase speed?)
   added ability to put debug drivers at the end of the list


Offline kenshiro

  • Expert
  • *****
  • Posts: 145
  • Karma: +21/-0
Re: FBA-XXX driverlist.h generator
« Reply #5 on: July 19, 2008, 07:21:30 PM »
Quote

19/07/08 revision 2   :cool:

- The generator is now useful for FBA and FBA-XXX.
  Just comment/ uncomment the following line according to the kind of build, and recompile source code:
 
Code: [Select]
#define PC_BUILD
 //#define XBOX

  Watch out! For PC build, by default the generator will use the file makefile.mingw
  If you're using VC , you should have to comment/ uncomment the two following lines:

Code: [Select]
fz = fopen("makefile.mingw", "rt");
//fz = fopen("makefile.vc", "rt");


- Simplified some parts of code / reduce a bit the amount of RAM