The NEW Build Your Own Arcade Controls

Main => Software Forum => Topic started by: krick on May 23, 2009, 07:02:19 pm

Title: vertical.ini and horizont.ini in MAME
Post by: krick on May 23, 2009, 07:02:19 pm
I was thinking that having a dedicated vertical.ini and/or horizont.ini (depending on which way you have your monitor mounted) would be useful so that you could set global settings that apply to all vertical or horizontal games at one shot.

I looked into implementing it in the latest MAME build and you can implement it with just a few lines of code in mame.c down in the section where it parses the ini files...

Code: [Select]
/* parse "vertical.ini" or "horizont.ini" */
if (driver->flags & ORIENTATION_SWAP_XY)
parse_ini_file(options, "vertical");
else
parse_ini_file(options, "horizont");

I'd really like to see this added to the next CabMAME build.   SailorSat?


EDIT:  I changed horizontal.ini to horizont.ini to make sure that it fits within 8.3 filename guidelines.  I also decided that it probably should go before vector.ini since there may be vector-specific options that you want to override one or both of these new ini files.  I've submitted it to MAMEDev, but for some reason, I feel that they may reject it.
Title: Re: vertical.ini and horizont.ini in MAME
Post by: krick on May 28, 2009, 03:07:46 pm
Success!  Added in MAME 0.131u3.  Hopefully, nobody objects and it makes it into 0.132.

http://mamedev.org/updates/whatsnew_0131u3.txt
Quote
Added support for parsing horizont.ini or vertical.ini based on the
game's orientation. [Krick]
Title: Re: vertical.ini and horizont.ini in MAME
Post by: Ummon on May 29, 2009, 05:12:39 pm
As well, via my noticing this effort of krick's, and my desire for these features to be in MameUI (actually since last year), they are available there, too. (Or maybe it would've been automatic, but I encouraged krick to submit this, in any case.)