implmented cfg command

This commit is contained in:
2026-01-07 16:49:33 +01:00
parent 2c2a193b52
commit 0132358cfc
3 changed files with 121 additions and 0 deletions

View File

@@ -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)
}
}