From: William Krick [mailto:bill@3feetunder.com]

Sent: Monday, May 25, 2009 9:31 PM
To: submit@mamedev.org
Subject: DIFF: vertical.ini & horizont.ini

This simple 4 line change (5 if you count the comment) to mame.c adds the
ability to parse vertical.ini and/or horizont.ini files.

I wanted this functionality so that I could specify different resolution
and artwork options for all vertical games in one shot.

I had a MAMEUI user ask that I submit this code to baseline MAME so that
it could be included in MAMEUI GUI without making changes to the core
codebase.

I chose to shorten "horizontal" to "horizont" to make sure that the
ini file falls within 8.3 filename guidelines.

thanks for your consideration
...
Krick
This commit is contained in:
Aaron Giles 2009-05-28 15:13:53 +00:00
parent 57deed92e8
commit fc14ac39cc

View File

@ -1313,6 +1313,12 @@ void mame_parse_ini_files(core_options *options, const game_driver *driver)
const device_config *device;
machine_config *config;
astring *sourcename;
/* parse "vertical.ini" or "horizont.ini" */
if (driver->flags & ORIENTATION_SWAP_XY)
parse_ini_file(options, "vertical");
else
parse_ini_file(options, "horizont");
/* parse "vector.ini" for vector games */
config = machine_config_alloc(driver->machine_config);