[Scummvm-git-logs] scummvm master -> 7b92e4372c5e2bde76bc4a365628db25035ae6eb

sev- sev at scummvm.org
Wed Nov 6 00:55:04 CET 2019


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
7b92e4372c SCUMM HE: MBC: Pass userid for the endsession request


Commit: 7b92e4372c5e2bde76bc4a365628db25035ae6eb
    https://github.com/scummvm/scummvm/commit/7b92e4372c5e2bde76bc4a365628db25035ae6eb
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2019-11-06T00:54:23+01:00

Commit Message:
SCUMM HE: MBC: Pass userid for the endsession request

Changed paths:
    engines/scumm/he/moonbase/net_main.cpp


diff --git a/engines/scumm/he/moonbase/net_main.cpp b/engines/scumm/he/moonbase/net_main.cpp
index 0412b0b..5a8323e 100644
--- a/engines/scumm/he/moonbase/net_main.cpp
+++ b/engines/scumm/he/moonbase/net_main.cpp
@@ -203,7 +203,7 @@ int Net::endSession() {
 		new Common::Callback<Net, Networking::ErrorResponse>(this, &Net::endSessionErrorCallback));
 
 	char *buf = (char *)malloc(MAX_PACKET_SIZE);
-	snprintf(buf, MAX_PACKET_SIZE, "{\"sessionid\":%d}", _sessionid);
+	snprintf(buf, MAX_PACKET_SIZE, "{\"sessionid\":%d, \"userid\":%d}", _sessionid, _myUserId);
 	rq.setPostData((byte *)buf, strlen(buf));
 	rq.setContentType("application/json");
 





More information about the Scummvm-git-logs mailing list