diff options
author | 2011-02-12 03:47:37 +0000 | |
---|---|---|
committer | 2011-02-12 03:47:37 +0000 | |
commit | 1b54456be5fd090b039b3e9f691ac0464ffdff12 (patch) | |
tree | 3839c21fada7804940b1c828dcceb6a57ff9c74f /src/emu/devintrf.c | |
parent | 061548d2bec629c46712844ffe459292f3c745f4 (diff) |
mame_file is now emu_file and is a class. It is required
to pass a core_options object to the constructor, along with
a search path. This required pushing either a running_machine
or a core_options through some code that wasn't previously
ready to handle it. emu_files can be reused over multiple
open/close sessions, and a lot of core code cleaned up
nicely as things were converted to them.
Also created a file_enumerator class for iterating over files
in a searchpath. This replaces the old mame_openpath functions.
Changed machine->options() to return a reference.
Removed public nvram_open() and fixed jchan/kaneko16 to
stop directly saving NVRAM.
Removed most of the mame_options() calls; this will soon go
away entirely, so don't add any more.
Added core_options to device_validity_check() so they can be
used to validate things.
Diffstat (limited to 'src/emu/devintrf.c')
-rw-r--r-- | src/emu/devintrf.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/emu/devintrf.c b/src/emu/devintrf.c index 3fc292e60e0..cf1f26a6e4f 100644 --- a/src/emu/devintrf.c +++ b/src/emu/devintrf.c @@ -269,7 +269,7 @@ void device_config_interface::interface_config_complete() // constructed //------------------------------------------------- -bool device_config_interface::interface_validity_check(const game_driver &driver) const +bool device_config_interface::interface_validity_check(core_options &options, const game_driver &driver) const { return false; } @@ -336,17 +336,17 @@ void device_config::config_complete() // configuration has been constructed //------------------------------------------------- -bool device_config::validity_check(const game_driver &driver) const +bool device_config::validity_check(core_options &options, const game_driver &driver) const { bool error = false; // validate via the interfaces for (device_config_interface *intf = m_interface_list; intf != NULL; intf = intf->interface_next()) - if (intf->interface_validity_check(driver)) + if (intf->interface_validity_check(options, driver)) error = true; // let the device itself validate - if (device_validity_check(driver)) + if (device_validity_check(options, driver)) error = true; return error; @@ -370,7 +370,7 @@ void device_config::device_config_complete() // the configuration has been constructed //------------------------------------------------- -bool device_config::device_validity_check(const game_driver &driver) const +bool device_config::device_validity_check(core_options &options, const game_driver &driver) const { // indicate no error by default return false; |