| Previous | 15994 Revisions | Next |
| r15317 Friday 25th May, 2012 at 17:37:55 UTC by Miodrag Milanović |
|---|
| Fix for MT bug #04859 (no whatsnew) also now in case ram value is not proper it change itself to default value |
| [src/emu] | emuopts.c |
| [src/emu/machine] | ram.c |
| r15316 | r15317 | |
|---|---|---|
| 401 | 401 | // remove any existing device options |
| 402 | 402 | remove_device_options(); |
| 403 | 403 | result = parse_slot_devices(argc, argv, error_string, NULL, NULL); |
| 404 | if (exists(OPTION_RAMSIZE)) | |
| 405 | set_value(OPTION_RAMSIZE, "", OPTION_PRIORITY_CMDLINE, error_string); | |
| 404 | 406 | } |
| 405 | 407 | return result; |
| 406 | 408 | } |
| r15316 | r15317 | |
|---|---|---|
| 164 | 164 | output.catprintf(").\n"); |
| 165 | 165 | |
| 166 | 166 | mame_printf_error("%s", output.cstr()); |
| 167 | ||
| 168 | mame_printf_warning("Setting value to default %s\n",m_default_size); | |
| 169 | astring error; | |
| 170 | mconfig().options().set_value(OPTION_RAMSIZE, m_default_size, OPTION_PRIORITY_CMDLINE, error); | |
| 171 | assert(!error); | |
| 167 | 172 | } |
| 168 | 173 | } |
| 169 | 174 |
| Previous | 15994 Revisions | Next |