cpu.rs: Properly pause during multistep
This commit is contained in:
parent
7ab0a596c9
commit
39fe4411d6
@ -431,6 +431,9 @@ impl CPU {
|
|||||||
//let speed = 1.0 / steps as f64;
|
//let speed = 1.0 / steps as f64;
|
||||||
for _ in 0..steps {
|
for _ in 0..steps {
|
||||||
self.tick(screen)?;
|
self.tick(screen)?;
|
||||||
|
if self.flags.is_paused() {
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
self.delay = self.delay.saturating_sub(1);
|
self.delay = self.delay.saturating_sub(1);
|
||||||
self.sound = self.sound.saturating_sub(1);
|
self.sound = self.sound.saturating_sub(1);
|
||||||
|
Loading…
Reference in New Issue
Block a user