You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Works for now, should be replaced by something better when more are added.
39
-
// Maybe https://github.com/jessevdk/go-flags ?
40
-
iflen(os.Args) >=3 {
41
-
ifos.Args[1] =="--steamgriddb" {
42
-
steamGridDBApiKey=os.Args[2]
43
-
fmt.Println("Support for SteamGridDB activated")
44
-
}
45
-
}
37
+
steamGridDBApiKey:=flag.String("steamgriddb", "", "Your personal SteamGridDB api key, get one here: https://www.steamgriddb.com/profile/preferences")
38
+
steamDir:=flag.String("steamdir", "", "Path to your steam installation")
39
+
flag.Parse()
46
40
47
41
fmt.Println("Loading overlays...")
48
42
overlays, err:=LoadOverlays(filepath.Join(filepath.Dir(os.Args[0]), "overlays by category"), artStyles)
@@ -56,7 +50,7 @@ func startApplication() {
56
50
}
57
51
58
52
fmt.Println("Looking for Steam directory...\nIf SteamGrid doesn´t find the directory automatically, launch it with an argument linking to the Steam directory.")
0 commit comments