mirror of
https://github.com/holub/mame
synced 2025-05-22 13:48:55 +03:00
Fix crash if exit scheduled before cpus ready.e.g. clicking close on window. No whatsnew.
This commit is contained in:
parent
bec93ce35b
commit
6605a2e3e5
@ -224,8 +224,9 @@ INLINE void eat_all_cpu_cycles(running_machine *machine)
|
|||||||
{
|
{
|
||||||
const device_config *cpu;
|
const device_config *cpu;
|
||||||
|
|
||||||
for (cpu = machine->firstcpu; cpu != NULL; cpu = cpu_next(cpu))
|
if(machine->cpuexec_data)
|
||||||
cpu_eat_cycles(cpu, 1000000000);
|
for (cpu = machine->firstcpu; cpu != NULL; cpu = cpu_next(cpu))
|
||||||
|
cpu_eat_cycles(cpu, 1000000000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user