Compare commits
No commits in common. "43e9791ffe246a7783893ac2df3d039d4eac5612" and "91c460c2f48b306b9906b6bb3240752c21a214ef" have entirely different histories.
43e9791ffe
...
91c460c2f4
14
manager.go
14
manager.go
|
@ -305,12 +305,16 @@ func DeployGameMods(gameName string, modArchivePaths []string) error {
|
|||
}
|
||||
}
|
||||
|
||||
if linkError := os.Link(path, deployFilePath); linkError != nil {
|
||||
if !(os.IsNotExist(linkError)) {
|
||||
return linkError
|
||||
if removeError := os.Remove(deployFilePath); removeError != nil {
|
||||
if !(os.IsNotExist(removeError)) {
|
||||
return removeError
|
||||
}
|
||||
}
|
||||
|
||||
if linkError := os.Link(path, deployFilePath); linkError != nil {
|
||||
return linkError
|
||||
}
|
||||
|
||||
return nil
|
||||
}); walkError != nil {
|
||||
if !(os.IsNotExist(walkError)) {
|
||||
|
@ -322,10 +326,6 @@ 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