@@ -53,6 +53,10 @@ func startApplication() {
53
53
steamGridTypes := flag .String ("types" , "static" , "Comma seperated list of types to download from SteamGridDB.\n Example: \" static,animated\" " )
54
54
skipSteam := flag .Bool ("skipsteam" , false , "Skip downloads from Steam servers" )
55
55
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" )
56
60
nonSteamOnly := flag .Bool ("nonsteamonly" , false , "Only search artwork for Non-Steam-Games" )
57
61
flag .Parse ()
58
62
if flag .NArg () == 1 {
@@ -62,7 +66,23 @@ func startApplication() {
62
66
os .Exit (1 )
63
67
}
64
68
69
+ // Process command line flags
65
70
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
+ }
66
86
67
87
fmt .Println ("Loading overlays..." )
68
88
overlays , err := LoadOverlays (filepath .Join (filepath .Dir (os .Args [0 ]), "overlays by category" ), artStyles )
0 commit comments