Compare commits
2 Commits
91c460c2f4
...
43e9791ffe
Author | SHA1 | Date | |
---|---|---|---|
43e9791ffe | |||
8fcf4f7f85 |
12
manager.go
12
manager.go
@ -305,15 +305,11 @@ 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 {
|
||||
if !(os.IsNotExist(linkError)) {
|
||||
return linkError
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}); walkError != 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…
x
Reference in New Issue
Block a user