implmented cfg command
This commit is contained in:
@@ -76,3 +76,19 @@ func DownloadGameArt(files []string, output string, config Config) {
|
||||
downloadArtForGame(gameID, output)
|
||||
}
|
||||
}
|
||||
|
||||
func DownloadCfg(files []string, output string, mode FileMode, config Config) {
|
||||
for _, file := range files {
|
||||
fmt.Printf("Scanning file: %s\n", file)
|
||||
|
||||
gameID, err := scanGameFileForID(file)
|
||||
if err != nil {
|
||||
fmt.Printf("Failed to scan game file: %s", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
fmt.Printf("Found game ID: %s\n", gameID)
|
||||
|
||||
downloadCfgForGame(gameID, output, mode)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user