Debugger comments actualized (#17385)

* Comments actualized

* Event name fixed

* Updated cpu.stepping description
This commit is contained in:
Nemoumbra 2023-05-23 09:46:49 +03:00 committed by GitHub
parent 71511c845f
commit 7517b7a4e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 6 deletions

View File

@ -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.
//

View File

@ -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))

View File

@ -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");

View File

@ -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)
//