Compare commits

...

2 Commits

1 changed files with 7 additions and 7 deletions

View File

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