From b3d9e44c2c856f7f9aec3f6f7778e984b574af9b Mon Sep 17 00:00:00 2001 From: Guillaume Meunier Date: Sat, 2 Nov 2024 13:38:39 +0100 Subject: [PATCH] Compute the steam app id from the app key --- dashboard/steam_app.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dashboard/steam_app.cpp b/dashboard/steam_app.cpp index 0a5c3a3f..1d76c75e 100644 --- a/dashboard/steam_app.cpp +++ b/dashboard/steam_app.cpp @@ -24,6 +24,7 @@ #include #include #include +#include namespace { @@ -90,7 +91,11 @@ std::vector steam_apps(const std::string & locale) const char prefix[] = "steam.app."; if (app_key.starts_with(prefix)) - app.url = "steam://rungameid/" + app_key.substr(strlen(prefix)); + { + // ¯\_(ツ)_/¯ + uint64_t appkey = stoll(app_key.substr(strlen(prefix))); + app.url = "steam://rungameid/" + std::to_string((appkey << 32) + 0x2000000); + } } if (app.url != "")