json: Optimize writing a bit.

This improves the responsiveness of certain APIs.
This commit is contained in:
Unknown W. Brackets committed 2018-06-08 06:59:17 -07:00
1 parent ccea863f00
commit fc8ad3b47b
7 files changed
+121 -91

No files matched your search

+1 -1
View File
@@ -46,7 +46,7 @@ void WebSocketGameStatus(DebuggerRequest &req) {
json.writeString("title", g_paramSFO.GetValueString("TITLE"));
json.pop();
} else {
json.writeRaw("game", "null");
json.writeNull("game");
}
json.writeBool("paused", GetUIState() == UISTATE_PAUSEMENU);
}