mirror of
https://github.com/holub/mame
synced 2025-07-06 10:29:38 +03:00
use the flag set by the GAME/CONS/COMP/SYST macro to parse additional optional ini files
GAME = GAME_TYPE_ARCADE -> arcade.ini CONS = GAME_TYPE_CONSOLE -> console.ini COMP = GAME_TYPE_COMPUTER -> computer.ini SYST = GAME_TYPE_OTHER -> othersys.ini I've had a few requests to do this and it seems simple enough to leverage the flags we already have.
This commit is contained in:
parent
a21e17e8cb
commit
40e8f47f3f
@ -426,6 +426,15 @@ void emu_options::parse_standard_inis(astring &error_string)
|
||||
else
|
||||
parse_one_ini("horizont", OPTION_PRIORITY_ORIENTATION_INI, &error_string);
|
||||
|
||||
if (cursystem->flags & GAME_TYPE_ARCADE)
|
||||
parse_one_ini("arcade", OPTION_PRIORITY_SYSTYPE_INI, &error_string);
|
||||
else if (cursystem->flags & GAME_TYPE_CONSOLE)
|
||||
parse_one_ini("console", OPTION_PRIORITY_SYSTYPE_INI, &error_string);
|
||||
else if (cursystem->flags & GAME_TYPE_COMPUTER)
|
||||
parse_one_ini("computer", OPTION_PRIORITY_SYSTYPE_INI, &error_string);
|
||||
else if (cursystem->flags & GAME_TYPE_OTHER)
|
||||
parse_one_ini("othersys", OPTION_PRIORITY_SYSTYPE_INI, &error_string);
|
||||
|
||||
// parse "vector.ini" for vector games
|
||||
{
|
||||
machine_config config(*cursystem, *this);
|
||||
|
@ -31,6 +31,7 @@ enum
|
||||
OPTION_PRIORITY_MAME_INI,
|
||||
OPTION_PRIORITY_DEBUG_INI,
|
||||
OPTION_PRIORITY_ORIENTATION_INI,
|
||||
OPTION_PRIORITY_SYSTYPE_INI,
|
||||
OPTION_PRIORITY_VECTOR_INI,
|
||||
OPTION_PRIORITY_SOURCE_INI,
|
||||
OPTION_PRIORITY_GPARENT_INI,
|
||||
|
Loading…
Reference in New Issue
Block a user