mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
add 'step' and 'resume' commands
This commit is contained in:
parent
5972bc769b
commit
9372a5226e
6 changed files with 91 additions and 42 deletions
|
|
@ -284,12 +284,14 @@ void Engine::postUpdate() {
|
|||
scripting::process_post_runnables();
|
||||
|
||||
if (debuggingServer) {
|
||||
if (!debuggingServer->update()) {
|
||||
debuggingServer.reset();
|
||||
}
|
||||
debuggingServer->update();
|
||||
}
|
||||
}
|
||||
|
||||
void Engine::detachDebugger() {
|
||||
debuggingServer.reset();
|
||||
}
|
||||
|
||||
void Engine::updateFrontend() {
|
||||
double delta = time.getDelta();
|
||||
updateHotkeys();
|
||||
|
|
@ -317,10 +319,9 @@ void Engine::startPauseLoop() {
|
|||
input->toggleCursor();
|
||||
}
|
||||
}
|
||||
while (!isQuitSignal()) {
|
||||
while (!isQuitSignal() && debuggingServer) {
|
||||
network->update();
|
||||
if (!debuggingServer->update()) {
|
||||
debuggingServer.reset();
|
||||
if (debuggingServer->update()) {
|
||||
break;
|
||||
}
|
||||
if (isHeadless()) {
|
||||
|
|
|
|||
|
|
@ -190,4 +190,6 @@ public:
|
|||
devtools::DebuggingServer* getDebuggingServer() {
|
||||
return debuggingServer.get();
|
||||
}
|
||||
|
||||
void detachDebugger();
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue