Use steam://rungameid/

This commit is contained in:
Ivan Molodetskikh 2017-11-10 09:40:11 +03:00 committed by Chris Marsh
parent 57316cbaee
commit c5d70514ac
3 changed files with 3 additions and 3 deletions

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}