Compare commits
2 Commits
91c460c2f4
...
43e9791ffe
Author | SHA1 | Date |
---|---|---|
kayomn | 43e9791ffe | |
kayomn | 8fcf4f7f85 |
14
manager.go
14
manager.go
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue