Compare commits

..

No commits in common. "43e9791ffe246a7783893ac2df3d039d4eac5612" and "91c460c2f48b306b9906b6bb3240752c21a214ef" have entirely different histories.

1 changed files with 7 additions and 7 deletions

View File

@ -305,12 +305,16 @@ func DeployGameMods(gameName string, modArchivePaths []string) error {
} }
} }
if linkError := os.Link(path, deployFilePath); linkError != nil { if removeError := os.Remove(deployFilePath); removeError != nil {
if !(os.IsNotExist(linkError)) { if !(os.IsNotExist(removeError)) {
return linkError return removeError
} }
} }
if linkError := os.Link(path, deployFilePath); linkError != nil {
return linkError
}
return nil return nil
}); walkError != nil { }); walkError != nil {
if !(os.IsNotExist(walkError)) { if !(os.IsNotExist(walkError)) {
@ -322,10 +326,6 @@ func DeployGameMods(gameName string, modArchivePaths []string) error {
} }
func RemoveGame(gameName string) error { func RemoveGame(gameName string) error {
if cleanError := CleanGameMods(gameName); cleanError != nil {
return cleanError
}
var gameDataPaths = make(map[string]string) var gameDataPaths = make(map[string]string)
if iniFile, openError := os.Open(gamesIniPath); openError == nil { if iniFile, openError := os.Open(gamesIniPath); openError == nil {