From c5d70514ac71743c482de73b21951e3ca4a2e162 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Fri, 10 Nov 2017 09:40:11 +0300 Subject: [PATCH] Use steam://rungameid/ --- src/discord_register_linux.cpp | 2 +- src/discord_register_osx.m | 2 +- src/discord_register_win.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/discord_register_linux.cpp b/src/discord_register_linux.cpp index 8bf08eb..bb100b1 100644 --- a/src/discord_register_linux.cpp +++ b/src/discord_register_linux.cpp @@ -91,6 +91,6 @@ extern "C" void Discord_Register(const char* applicationId, const char* command) extern "C" void Discord_RegisterSteamGame(const char* applicationId, const char* steamId) { char command[256]; - sprintf(command, "xdg-open steam://run/%s", steamId); + sprintf(command, "xdg-open steam://rungameid/%s", steamId); Discord_Register(applicationId, command); } diff --git a/src/discord_register_osx.m b/src/discord_register_osx.m index 20063e7..ce481a8 100644 --- a/src/discord_register_osx.m +++ b/src/discord_register_osx.m @@ -92,6 +92,6 @@ void Discord_Register(const char* applicationId, const char* command) void Discord_RegisterSteamGame(const char* applicationId, const char* steamId) { char command[256]; - sprintf(command, "steam://run/%s", steamId); + sprintf(command, "steam://rungameid/%s", steamId); Discord_Register(applicationId, command); } diff --git a/src/discord_register_win.cpp b/src/discord_register_win.cpp index 74593e4..34f2483 100644 --- a/src/discord_register_win.cpp +++ b/src/discord_register_win.cpp @@ -121,7 +121,7 @@ extern "C" void Discord_RegisterSteamGame(const char* applicationId, const char* } wchar_t command[1024]; - StringCbPrintfW(command, sizeof(command), L"\"%s\" steam://run/%s", steamPath, wSteamId); + StringCbPrintfW(command, sizeof(command), L"\"%s\" steam://rungameid/%s", steamPath, wSteamId); Discord_RegisterW(appId, command); }