diff --git a/Core/Debugger/WebSocket/GameBroadcaster.cpp b/Core/Debugger/WebSocket/GameBroadcaster.cpp index c8b4039769..c71f13d574 100644 --- a/Core/Debugger/WebSocket/GameBroadcaster.cpp +++ b/Core/Debugger/WebSocket/GameBroadcaster.cpp @@ -64,7 +64,7 @@ struct GameStatusEvent { // - version: string disc version. // - title: string game title. -// Game resumed (game.pause) +// Game resumed (game.resume) // // Note: this is not the same as stepping. This means the user resumed from the pause menu. // diff --git a/Core/Debugger/WebSocket/InputSubscriber.cpp b/Core/Debugger/WebSocket/InputSubscriber.cpp index 1ef9260686..e15c124463 100644 --- a/Core/Debugger/WebSocket/InputSubscriber.cpp +++ b/Core/Debugger/WebSocket/InputSubscriber.cpp @@ -128,7 +128,7 @@ DebuggerSubscriber *WebSocketInputInit(DebuggerEventHandlerMap &map) { // - back: back button on headset. // - playpause: play/pause button on headset. // -// Empty response. +// Response (same event name) with no extra data. void WebSocketInputState::ButtonsSend(DebuggerRequest &req) { const JsonNode *jsonButtons = req.data.get("buttons"); if (!jsonButtons) { @@ -166,7 +166,7 @@ void WebSocketInputState::ButtonsSend(DebuggerRequest &req) { // - button: required string indicating button name (see input.buttons.send.) // - duration: optional integer indicating frames to press for, defaults to 1. // -// Empty response once released. +// Response (same event name) with no extra data once released. void WebSocketInputState::ButtonsPress(DebuggerRequest &req) { std::string button; if (!req.ParamString("button", &button)) @@ -238,7 +238,7 @@ static bool AnalogValue(DebuggerRequest &req, float *value, const char *name) { // - y: required number from -1.0 to 1.0. // - stick: optional string, either "left" (default) or "right". // -// Empty response. +// Response (same event name) with no extra data. void WebSocketInputState::AnalogSend(DebuggerRequest &req) { std::string stick = "left"; if (!req.ParamString("stick", &stick, DebuggerParamType::OPTIONAL)) diff --git a/Core/Debugger/WebSocket/ReplaySubscriber.cpp b/Core/Debugger/WebSocket/ReplaySubscriber.cpp index 3b548a25e5..db45d05096 100644 --- a/Core/Debugger/WebSocket/ReplaySubscriber.cpp +++ b/Core/Debugger/WebSocket/ReplaySubscriber.cpp @@ -43,7 +43,7 @@ DebuggerSubscriber *WebSocketReplayInit(DebuggerEventHandlerMap &map) { // // No parameters. // -// Empty response. +// Response (same event name) with no extra data. void WebSocketReplayBegin(DebuggerRequest &req) { ReplayBeginSave(); req.Respond(); @@ -142,7 +142,7 @@ void WebSocketReplayTimeGet(DebuggerRequest &req) { // Parameters: // - value: unsigned integer. // -// Empty response. +// Response (same event name) with no extra data. void WebSocketReplayTimeSet(DebuggerRequest &req) { if (!PSP_IsInited()) return req.Fail("Game not running"); diff --git a/Core/Debugger/WebSocket/SteppingBroadcaster.cpp b/Core/Debugger/WebSocket/SteppingBroadcaster.cpp index 5d255d4f8e..6e7e4aa71e 100644 --- a/Core/Debugger/WebSocket/SteppingBroadcaster.cpp +++ b/Core/Debugger/WebSocket/SteppingBroadcaster.cpp @@ -48,6 +48,8 @@ private: // Sent unexpectedly with these properties: // - pc: number value of PC register (inaccurate unless stepping.) // - ticks: number of CPU cycles into emulation. +// - reason: a value submitted to Core_EnableStepping ("jit.branchdebug", "savestate.load", "ui.lost_focus", etc.) +// - relatedAddress: an address (often zero, but it can be a value of PC saved at some point, a related memory address, etc.) // CPU has resumed from stepping (cpu.resume) //