From fc14ac39cc1f2d6ce5b5eec2ab915a27c848d259 Mon Sep 17 00:00:00 2001 From: Aaron Giles Date: Thu, 28 May 2009 15:13:53 +0000 Subject: [PATCH] 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 --- src/emu/mame.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/emu/mame.c b/src/emu/mame.c index 26952ea6a01..1a582ab2620 100644 --- a/src/emu/mame.c +++ b/src/emu/mame.c @@ -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);