Use steam://rungameid/
This commit is contained in:
parent
57316cbaee
commit
c5d70514ac
3 changed files with 3 additions and 3 deletions
|
@ -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)
|
extern "C" void Discord_RegisterSteamGame(const char* applicationId, const char* steamId)
|
||||||
{
|
{
|
||||||
char command[256];
|
char command[256];
|
||||||
sprintf(command, "xdg-open steam://run/%s", steamId);
|
sprintf(command, "xdg-open steam://rungameid/%s", steamId);
|
||||||
Discord_Register(applicationId, command);
|
Discord_Register(applicationId, command);
|
||||||
}
|
}
|
||||||
|
|
|
@ -92,6 +92,6 @@ void Discord_Register(const char* applicationId, const char* command)
|
||||||
void Discord_RegisterSteamGame(const char* applicationId, const char* steamId)
|
void Discord_RegisterSteamGame(const char* applicationId, const char* steamId)
|
||||||
{
|
{
|
||||||
char command[256];
|
char command[256];
|
||||||
sprintf(command, "steam://run/%s", steamId);
|
sprintf(command, "steam://rungameid/%s", steamId);
|
||||||
Discord_Register(applicationId, command);
|
Discord_Register(applicationId, command);
|
||||||
}
|
}
|
||||||
|
|
|
@ -121,7 +121,7 @@ extern "C" void Discord_RegisterSteamGame(const char* applicationId, const char*
|
||||||
}
|
}
|
||||||
|
|
||||||
wchar_t command[1024];
|
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);
|
Discord_RegisterW(appId, command);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue