| Previous | 199869 Revisions | Next |
| r31777 Tuesday 26th August, 2014 at 02:11:29 UTC by R. Belmont |
|---|
| SDL: don't require -str to enable watchdog (nw) |
| [src/osd/sdl] | sdlmain.c |
| r31776 | r31777 | |
|---|---|---|
| 680 | 680 | /* now setup watchdog */ |
| 681 | 681 | |
| 682 | 682 | int watchdog_timeout = options.watchdog(); |
| 683 | int str = options.seconds_to_run(); | |
| 684 | 683 | |
| 685 | /* only enable watchdog if seconds_to_run is enabled *and* relatively short (time taken from ui.c) */ | |
| 686 | if ((watchdog_timeout != 0) && (str > 0) && (str < 60*5 )) | |
| 684 | if (watchdog_timeout != 0) | |
| 687 | 685 | { |
| 688 | 686 | m_watchdog = auto_alloc(machine, watchdog); |
| 689 | 687 | m_watchdog->setTimeout(watchdog_timeout); |
| Previous | 199869 Revisions | Next |