summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/devlegcy.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2011-03-03 17:05:24 +0000
committer Aaron Giles <aaron@aarongiles.com>2011-03-03 17:05:24 +0000
commit06ee6804dd5d1157a079e02d46abb6612571f21f (patch)
tree831cd82cc7cf6d493e6b5e9a7bf7d956733cf663 /src/emu/devlegcy.c
parente870e8d7bce1bda126a3ea06391d587dc9b57f01 (diff)
Converted core_options to a class. Removed a bunch of marginal
functionality in favor of alternate mechanisms. Errors are now reported via an astring rather than via callbacks. Every option must now specify a type (command, integer, float, string, boolean, etc). Command behavior has changed so that only one command is permitted. [Aaron Giles] Changed fileio system to accept just a raw searchpath instead of an options/option name combination. [Aaron Giles] Created emu_options class dervied from core_options which wraps core emulator options. Added mechanisms to cleanly change the system name and add/remove system-specific options, versus the old way using callbacks. Also added read accessors for all the options, to ensure consistency in how parameters are handled. Changed most core systems to access emu_options instead of core_options. Also changed machine->options() to return emu_options. [Aaron Giles] Created cli_options class derived from emu_options which adds the command-line specific options. Updated clifront code to leverage the new class and the new core behaviors. cli_execute() now accepts a cli_options object when called. [Aaron Giles] Updated both SDL and Windows to have their own options classes, derived from cli_options, which add the OSD-specific options on top of everything else. Added accessors for all the options so that queries are strongly typed and simplified. [Aaron Giles] Out of whatsnew: I've surely screwed up some stuff, though I have smoke tested a bunch of things. Let me know if you hit anything odd. Also I know this change will impact the WINUI stuff, please let me know if there are issues. All the functionality necessary should still be present. If it's not obvious, please talk to me before adding stuff to the core_options class.
Diffstat (limited to 'src/emu/devlegcy.c')
-rw-r--r--src/emu/devlegcy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/devlegcy.c b/src/emu/devlegcy.c
index 1af3c5d46c0..0479a2e87d5 100644
--- a/src/emu/devlegcy.c
+++ b/src/emu/devlegcy.c
@@ -192,7 +192,7 @@ void legacy_device_config_base::static_set_inline_float(device_config *device, U
// checks on a device configuration
//-------------------------------------------------
-bool legacy_device_config_base::device_validity_check(core_options &options, const game_driver &driver) const
+bool legacy_device_config_base::device_validity_check(emu_options &options, const game_driver &driver) const
{
device_validity_check_func validity_func = reinterpret_cast<device_validity_check_func>(get_legacy_config_fct(DEVINFO_FCT_VALIDITY_CHECK));
if (validity_func != NULL)