Skip to content

Commit

Permalink
New endpoint to break/continue
Browse files Browse the repository at this point in the history
  • Loading branch information
Dillonb committed Aug 25, 2024
1 parent b6d1277 commit 644727d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/frontend/http_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,11 @@ void http_api_init() {
HTTP_OK;
});

svr.Get("/control/break-continue", [&](const httplib::Request& req, httplib::Response& res) {
n64sys.debugger_state.broken = !n64sys.debugger_state.broken;
HTTP_OK;
});

svr.Get("/control/quit", [&](const httplib::Request& req, httplib::Response& res) {
n64sys.debugger_state.broken = false; // if we're paused, we need to unpause for the quit to work
n64_request_quit();
Expand Down

0 comments on commit 644727d

Please sign in to comment.