Skip to content

Commit

Permalink
Remove break/continue, add a new endpoint to get state
Browse files Browse the repository at this point in the history
  • Loading branch information
Dillonb committed Aug 25, 2024
1 parent 644727d commit eb1831a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/frontend/http_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,10 @@ 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/state", [&](const httplib::Request& req, httplib::Response& res) {
json result;
result["running"] = !n64sys.debugger_state.broken;
res.set_content(result.dump(), "application/json");
});

svr.Get("/control/quit", [&](const httplib::Request& req, httplib::Response& res) {
Expand Down

0 comments on commit eb1831a

Please sign in to comment.