summaryrefslogtreecommitdiffstatshomepage
path: root/src/frontend/mame/mameopts.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/mame/mameopts.cpp')
-rw-r--r--src/frontend/mame/mameopts.cpp17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/frontend/mame/mameopts.cpp b/src/frontend/mame/mameopts.cpp
index 029c5c601a6..d6c1e1044cf 100644
--- a/src/frontend/mame/mameopts.cpp
+++ b/src/frontend/mame/mameopts.cpp
@@ -49,14 +49,23 @@ void mame_options::parse_standard_inis(emu_options &options, std::ostream &error
else
parse_one_ini(options, "horizont", OPTION_PRIORITY_ORIENTATION_INI, &error_stream);
- if (cursystem->flags & MACHINE_TYPE_ARCADE)
+ switch (cursystem->flags & machine_flags::MASK_TYPE)
+ {
+ case machine_flags::TYPE_ARCADE:
parse_one_ini(options, "arcade", OPTION_PRIORITY_SYSTYPE_INI, &error_stream);
- else if (cursystem->flags & MACHINE_TYPE_CONSOLE)
+ break;
+ case machine_flags::TYPE_CONSOLE:
parse_one_ini(options ,"console", OPTION_PRIORITY_SYSTYPE_INI, &error_stream);
- else if (cursystem->flags & MACHINE_TYPE_COMPUTER)
+ break;
+ case machine_flags::TYPE_COMPUTER:
parse_one_ini(options, "computer", OPTION_PRIORITY_SYSTYPE_INI, &error_stream);
- else if (cursystem->flags & MACHINE_TYPE_OTHER)
+ break;
+ case machine_flags::TYPE_OTHER:
parse_one_ini(options, "othersys", OPTION_PRIORITY_SYSTYPE_INI, &error_stream);
+ break;
+ default:
+ break;
+ }
machine_config config(*cursystem, options);
for (const screen_device &device : screen_device_iterator(config.root_device()))