| Previous | 15994 Revisions | Next |
| r8989 Wednesday 1st September, 2010 at 08:07:22 UTC by Miodrag Milanović |
|---|
| Made options visible to device validate function when doing "-validate" |
| [src/emu] | clifront.c mame.c mame.h |
| r8988 | r8989 | |
|---|---|---|
| 240 | 240 | /* validate? */ |
| 241 | 241 | if (options_get_bool(options, CLIOPTION_VALIDATE)) |
| 242 | 242 | { |
| 243 | set_mame_options(options); | |
| 243 | 244 | return mame_validitychecks(NULL); |
| 244 | 245 | } |
| 245 | 246 |
| r8988 | r8989 | |
|---|---|---|
| 237 | 237 | |
| 238 | 238 | |
| 239 | 239 | |
| 240 | /*------------------------------------------------- | |
| 241 | set_mame_options - set mame options, used by | |
| 242 | validate option | |
| 243 | -------------------------------------------------*/ | |
| 244 | ||
| 245 | void set_mame_options(core_options *options) | |
| 246 | { | |
| 247 | mame_opts = options; | |
| 248 | } | |
| 249 | ||
| 250 | ||
| 240 | 251 | /*************************************************************************** |
| 241 | 252 | OUTPUT MANAGEMENT |
| 242 | 253 | ***************************************************************************/ |
| r8988 | r8989 | |
|---|---|---|
| 101 | 101 | /* accesses the core_options for the currently running emulation */ |
| 102 | 102 | core_options *mame_options(void); |
| 103 | 103 | |
| 104 | /* set mame options, used by validate option */ | |
| 105 | void set_mame_options(core_options *options); | |
| 106 | ||
| 104 | 107 | /* return true if the given machine is valid */ |
| 105 | 108 | int mame_is_valid_machine(running_machine *machine); |
| 106 | 109 |
| Previous | 15994 Revisions | Next |