From 92c71adbb637a2c397c87e61fb35d51839239fac Mon Sep 17 00:00:00 2001 From: Jack Nolddor <1280022+nolddor@users.noreply.github.com> Date: Thu, 26 Feb 2026 15:16:00 +0100 Subject: [PATCH 1/2] fix: #538 custom games are not displayed anymore --- components/apps.js | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/components/apps.js b/components/apps.js index 206b50eb..b0fb5827 100644 --- a/components/apps.js +++ b/components/apps.js @@ -60,7 +60,21 @@ class SteamUserApps extends SteamUserAppAuth { let processedApps = apps.map((app) => { if (typeof app == 'string') { - app = {game_id: '15190414816125648896', game_extra_info: app}; + const appid = 753; // Steam itself - See https://steamcommunity.com/app/753 + const apptype = 1; // GameMod - See https://github.com/SteamRE/SteamKit/blob/48f89a29d2e9cb4dbda2ec0000da49393d8c42b0/SteamKit2/SteamKit2/Types/GameID.cs#L23-L41 + const modid = 0xFFFFFFFF // 1 hexadecimal digit = 4 bits, so we need 8 of these to fill the 32 bits reserved for modid. + + /* + GameID is a raw 64-bit value is constructed like this: + - bits 0–23 = AppID (24 bit) + - bits 24–31 = AppType (8 bit) + - bits 32–63 = ModID (32 bit) + */ + const game_id = (BigInt(modid) << 32n) | + (BigInt(apptype) << 24n) | + BigInt(appid); + + app = {game_id: game_id.toString(), game_extra_info: app}; } else if (typeof app != 'object') { app = {game_id: app}; } From 5fb18fc4ceb7d856aaf51e9b6f4efff7387960a8 Mon Sep 17 00:00:00 2001 From: Jack Nolddor <1280022+nolddor@users.noreply.github.com> Date: Thu, 26 Feb 2026 15:22:48 +0100 Subject: [PATCH 2/2] chore: add missing semicolon --- components/apps.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/apps.js b/components/apps.js index b0fb5827..c8aed88a 100644 --- a/components/apps.js +++ b/components/apps.js @@ -62,7 +62,7 @@ class SteamUserApps extends SteamUserAppAuth { if (typeof app == 'string') { const appid = 753; // Steam itself - See https://steamcommunity.com/app/753 const apptype = 1; // GameMod - See https://github.com/SteamRE/SteamKit/blob/48f89a29d2e9cb4dbda2ec0000da49393d8c42b0/SteamKit2/SteamKit2/Types/GameID.cs#L23-L41 - const modid = 0xFFFFFFFF // 1 hexadecimal digit = 4 bits, so we need 8 of these to fill the 32 bits reserved for modid. + const modid = 0xFFFFFFFF; // 1 hexadecimal digit = 4 bits, so we need 8 of these to fill the 32 bits reserved for modid. /* GameID is a raw 64-bit value is constructed like this: