Skip to content

Commit 534a81e

Browse files
committed
fix: prevent adding shortcuts for Steam games and DLCs
1 parent 440b2cd commit 534a81e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/backend/shortcuts/nonesteamgame/nonesteamgame.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,10 @@ async function addNonSteamGame(props: {
217217
bkgDataUrl?: string
218218
bigPicDataUrl?: string
219219
}): Promise<boolean> {
220+
if (props.gameInfo.install.is_dlc || props.gameInfo.runner === 'steam') {
221+
return false
222+
}
223+
220224
const steamUserdataDir =
221225
props.steamUserdataDir || (await getSteamUserdataDir())
222226

src/backend/shortcuts/shortcuts/shortcuts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import * as GogLibraryManager from '../../storeManagers/gog/library'
2929
* @public
3030
*/
3131
async function addShortcuts(gameInfo: GameInfo, fromMenu?: boolean) {
32-
if (gameInfo.install.is_dlc) {
32+
if (gameInfo.install.is_dlc || gameInfo.runner === 'steam') {
3333
return
3434
}
3535
logInfo(`Adding shortcuts for ${gameInfo.title}`, LogPrefix.Backend)

0 commit comments

Comments
 (0)