summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2009-05-28 15:13:53 +0000
committer Aaron Giles <aaron@aarongiles.com>2009-05-28 15:13:53 +0000
commitfc14ac39cc1f2d6ce5b5eec2ab915a27c848d259 (patch)
treeca8c8e3e97537c0478020593b4c9f9ec484a547d
parent57deed92e87d13ec7e8729c6be633210af94e58c (diff)
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
-rw-r--r--src/emu/mame.c6
1 files changed, 6 insertions, 0 deletions
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);