Comments
This commit is contained in:
parent
d27e4947ae
commit
62241ff857
|
@ -63,6 +63,7 @@ func getGamesFromProvider(provider string, cliOptions providers.ProviderOptions)
|
||||||
return games
|
return games
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: Reduce into smaller functions
|
||||||
func processGames(games []providers.Game, cliOptions providers.ProviderOptions) {
|
func processGames(games []providers.Game, cliOptions providers.ProviderOptions) {
|
||||||
for _, game := range games {
|
for _, game := range games {
|
||||||
destinationPath := filepath.Join(helpers.ExpandUser(*cliOptions.OutputPath), game.Platform)
|
destinationPath := filepath.Join(helpers.ExpandUser(*cliOptions.OutputPath), game.Platform)
|
||||||
|
@ -96,7 +97,7 @@ func processGames(games []providers.Game, cliOptions providers.ProviderOptions)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Printf("=> Proceesing screenshots for %s %s", game.Name, game.Notes)
|
log.Printf("=> Processing screenshots for %s %s", game.Name, game.Notes)
|
||||||
for _, screenshot := range game.Screenshots {
|
for _, screenshot := range game.Screenshots {
|
||||||
destinationPath := filepath.Join(destinationPath, screenshot.GetDestinationName())
|
destinationPath := filepath.Join(destinationPath, screenshot.GetDestinationName())
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue