mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-28 16:53:40 +01:00
Debugger: Cleanup, add initial API docs.
This commit is contained in:
1 parent
3c458310ed
commit
0a21063525
3 files changed
+55
-10
No files matched your search
@@ -25,13 +25,13 @@ void GameBroadcaster::Broadcast(net::WebSocketServer *ws) {
|
||||
GlobalUIState state = GetUIState();
|
||||
if (prevState_ != state) {
|
||||
if (state == UISTATE_PAUSEMENU) {
|
||||
ws->Send(R"({"event":"game_pause"})");
|
||||
ws->Send(R"({"event":"game.pause"})");
|
||||
} else if (state == UISTATE_INGAME && prevState_ == UISTATE_PAUSEMENU) {
|
||||
ws->Send(R"({"event":"game_resume"})");
|
||||
ws->Send(R"({"event":"game.resume"})");
|
||||
} else if (state == UISTATE_INGAME) {
|
||||
ws->Send(R"({"event":"game_start"})");
|
||||
ws->Send(R"({"event":"game.start"})");
|
||||
} else if (state == UISTATE_MENU) {
|
||||
ws->Send(R"({"event":"game_quit"})");
|
||||
ws->Send(R"({"event":"game.quit"})");
|
||||
}
|
||||
prevState_ = state;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user