Browse Source

Update backgroundchanger.go

main
Unbewohnte 4 years ago committed by GitHub
parent
commit
6b48ac5f02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      backgroundchanger.go

2
backgroundchanger.go

@ -204,6 +204,7 @@ func replaceBackgrounds(beatmapFolder, replacementPicPath string) (successful, f
if err != nil {
failed++
log.Println("ERROR: Error removing old background : ", err, " file: ", backgroundPath)
continue
}
// create new background file
@ -219,6 +220,7 @@ func replaceBackgrounds(beatmapFolder, replacementPicPath string) (successful, f
err = copyFile(replacementPicPath, backgroundPath)
if err != nil {
failed++
continue
}
successful++
}

Loading…
Cancel
Save