File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
src/backend/storeManagers/steam Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import path from 'node:path'
5
5
import { parse } from '@node-steam/vdf'
6
6
import { existsSync , readFileSync } from 'graceful-fs'
7
7
import { readdir } from 'node:fs/promises'
8
- import { getSteamLibraries } from 'backend/constants'
8
+ import { getSteamLibraries , isMac } from 'backend/constants'
9
9
import { logDebug , LogPrefix , logWarning } from 'backend/logger/logger'
10
10
import { isOnline } from 'backend/online_monitor'
11
11
import { steamDBBaseURL } from 'backend/shortcuts/nonesteamgame/constants'
@@ -27,6 +27,13 @@ const installed = new Map<string, SteamInstallInfo>()
27
27
export async function getOwnedGames (
28
28
userId : string
29
29
) : Promise < OwnedGame [ ] | undefined > {
30
+ if ( isMac ) {
31
+ logWarning ( 'getOwnedGames is not supported on macOS' , {
32
+ prefix : LogPrefix . Steam
33
+ } )
34
+ return [ ]
35
+ }
36
+
30
37
const url = new URL (
31
38
'https://api.steampowered.com/IPlayerService/GetOwnedGames/v0001/?format=json&include_appinfo=true'
32
39
)
You can’t perform that action at this time.
0 commit comments