[Scummvm-git-logs] scummvm master -> 60b2c9164b24818c7fe1054e1cae319329bcd463
SupSuper
supsuper at gmail.com
Sat Sep 5 19:43:35 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:
60b2c9164b BACKENDS: Use unique game ID for Discord presence
Commit: 60b2c9164b24818c7fe1054e1cae319329bcd463
https://github.com/scummvm/scummvm/commit/60b2c9164b24818c7fe1054e1cae319329bcd463
Author: SupSuper (supsuper at gmail.com)
Date: 2020-09-05T20:43:07+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 0e0ff0a55a..88ee4668f8 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