mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-06 05:28:25 +00:00
Make GAmeSubscriber backward compatible again.
Now it won't break any potential old client that doesn't pass the fields. Should have insisted on this.
This commit is contained in:
parent
845b6b7f3e
commit
16bca6fe8b
@ -98,15 +98,13 @@ void WebSocketVersion(DebuggerRequest &req) {
|
||||
JsonWriter &json = req.Respond();
|
||||
|
||||
std::string version;
|
||||
if (!req.ParamString("version", &version)) {
|
||||
return;
|
||||
if (req.ParamString("version", &version)) {
|
||||
req.client->version = version;
|
||||
}
|
||||
std::string name;
|
||||
if (!req.ParamString("name", &name)) {
|
||||
return;
|
||||
if (req.ParamString("name", &name)) {
|
||||
req.client->name = name;
|
||||
}
|
||||
req.client->name = name;
|
||||
req.client->version = version;
|
||||
|
||||
json.writeString("name", "PPSSPP");
|
||||
json.writeString("version", PPSSPP_GIT_VERSION);
|
||||
|
Loading…
x
Reference in New Issue
Block a user