mirror of
https://github.com/holub/mame
synced 2025-05-25 15:25:33 +03:00
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:
parent
57deed92e8
commit
fc14ac39cc
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user