From 60b2c9164b24818c7fe1054e1cae319329bcd463 Mon Sep 17 00:00:00 2001 From: SupSuper Date: Sat, 5 Sep 2020 20:41:21 +0100 Subject: [PATCH] BACKENDS: Use unique game ID for Discord presence Append engine ID to ensure uniqueness --- backends/platform/sdl/sdl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backends/platform/sdl/sdl.cpp b/backends/platform/sdl/sdl.cpp index 0e0ff0a55a0..88ee4668f81 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);