mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-08-13 06:49:19 -04:00
Drop single-stepping and pause modes (#294)
This commit is contained in:
parent
9af9a87cb6
commit
3d57c2e74c
5 changed files with 1 additions and 156 deletions
src/engine
|
@ -70,13 +70,6 @@ Sequencer.prototype.stepThreads = function () {
|
|||
activeThread.warpTimer = null;
|
||||
}
|
||||
if (activeThread.status === Thread.STATUS_RUNNING) {
|
||||
// After stepping, status is still running.
|
||||
// If we're in single-stepping mode, mark the thread as
|
||||
// a single-tick yield so it doesn't re-execute
|
||||
// until the next frame.
|
||||
if (this.runtime.singleStepping) {
|
||||
activeThread.status = Thread.STATUS_YIELD_TICK;
|
||||
}
|
||||
numActiveThreads++;
|
||||
}
|
||||
}
|
||||
|
@ -169,11 +162,6 @@ Sequencer.prototype.stepThread = function (thread) {
|
|||
// Get next block of existing block on the stack.
|
||||
thread.goToNextBlock();
|
||||
}
|
||||
// In single-stepping mode, force `stepThread` to only run one block
|
||||
// at a time.
|
||||
if (this.runtime.singleStepping) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue