[Scummvm-git-logs] scummvm branch-2-2 -> ff671c1e57e193f4c5a73b8043bbf1f2e9429ba4

SupSuper supsuper at gmail.com
Sat Sep 5 19:42:03 UTC 2020


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:
ff671c1e57 BACKENDS: Use unique game ID for Discord presence


Commit: ff671c1e57e193f4c5a73b8043bbf1f2e9429ba4
    https://github.com/scummvm/scummvm/commit/ff671c1e57e193f4c5a73b8043bbf1f2e9429ba4
Author: SupSuper (supsuper at gmail.com)
Date: 2020-09-05T20:41:21+01:00

Commit Message:
BACKENDS: Use unique game ID for Discord presence

Append engine ID to ensure uniqueness

Changed paths:
    backends/platform/sdl/sdl.cpp


diff --git a/backends/platform/sdl/sdl.cpp b/backends/platform/sdl/sdl.cpp
index 99ebb73d7e..12107ba94a 100644
--- a/backends/platform/sdl/sdl.cpp
+++ b/backends/platform/sdl/sdl.cpp
@@ -302,7 +302,8 @@ void OSystem_SDL::engineInit() {
 #endif
 #ifdef USE_DISCORD
 	// Set the presence status to the current running engine
-	_presence->updateStatus(ConfMan.get("gameid"), ConfMan.get("description"));
+	Common::String qualifiedGameId = Common::String::format("%s-%s", ConfMan.get("engineid").c_str(), ConfMan.get("gameid").c_str());
+	_presence->updateStatus(qualifiedGameId, ConfMan.get("description"));
 #endif
 
 	_eventSource->setEngineRunning(true);




More information about the Scummvm-git-logs mailing list