mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2024-11-29 14:51:17 +00:00
make sure display + serial is updated if advanceFrame() throws
This commit is contained in:
parent
b160fb2ef2
commit
949e216c69
@ -873,15 +873,19 @@ export abstract class BaseMachinePlatform<T extends Machine> extends BaseDebugPl
|
|||||||
|
|
||||||
advance(novideo:boolean) {
|
advance(novideo:boolean) {
|
||||||
let trap = this.getDebugCallback();
|
let trap = this.getDebugCallback();
|
||||||
var steps = this.machine.advanceFrame(trap);
|
try {
|
||||||
if (!novideo && this.video) {
|
var steps = this.machine.advanceFrame(trap);
|
||||||
this.video.updateFrame();
|
return steps;
|
||||||
this.updateVideoDebugger();
|
} finally {
|
||||||
|
// in case EmuHalt is thrown...
|
||||||
|
if (!novideo && this.video) {
|
||||||
|
this.video.updateFrame();
|
||||||
|
this.updateVideoDebugger();
|
||||||
|
}
|
||||||
|
if (!novideo && this.serialVisualizer) {
|
||||||
|
this.serialVisualizer.refresh();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (!novideo && this.serialVisualizer) {
|
|
||||||
this.serialVisualizer.refresh();
|
|
||||||
}
|
|
||||||
return steps;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
updateVideoDebugger() {
|
updateVideoDebugger() {
|
||||||
|
Loading…
Reference in New Issue
Block a user