Skip to content

Commit d9b8f43

Browse files
Luckiboppreh
authored andcommitted
Allow skipping some types of artwork
1 parent ee19517 commit d9b8f43

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

steamgrid.go

+20
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ func startApplication() {
5353
steamGridTypes := flag.String("types", "static", "Comma seperated list of types to download from SteamGridDB.\nExample: \"static,animated\"")
5454
skipSteam := flag.Bool("skipsteam", false, "Skip downloads from Steam servers")
5555
skipGoogle := flag.Bool("skipgoogle", false, "Skip search and downloads from google")
56+
skipBanner := flag.Bool("skipbanner", false, "Skip search and processing banner artwork")
57+
skipCover := flag.Bool("skipcover", false, "Skip search and processing cover artwork")
58+
skipHero := flag.Bool("skiphero", false, "Skip search and processing hero artwork")
59+
skipLogo := flag.Bool("skiplogo", false, "Skip search and processing logo artwork")
5660
nonSteamOnly := flag.Bool("nonsteamonly", false, "Only search artwork for Non-Steam-Games")
5761
flag.Parse()
5862
if flag.NArg() == 1 {
@@ -62,7 +66,23 @@ func startApplication() {
6266
os.Exit(1)
6367
}
6468

69+
// Process command line flags
6570
steamGridFilter := "?styles=" + *steamGridStyles + "&types=" + *steamGridTypes
71+
if *skipBanner {
72+
delete(artStyles, "Banner")
73+
}
74+
if *skipCover {
75+
delete(artStyles, "Cover")
76+
}
77+
if *skipHero {
78+
delete(artStyles, "Hero")
79+
}
80+
if *skipLogo {
81+
delete(artStyles, "Logo")
82+
}
83+
if len(artStyles) == 0 {
84+
errorAndExit(errors.New("No artStyes, nothing to do…"))
85+
}
6686

6787
fmt.Println("Loading overlays...")
6888
overlays, err := LoadOverlays(filepath.Join(filepath.Dir(os.Args[0]), "overlays by category"), artStyles)

0 commit comments

Comments
 (0)