Fix removal of game association not cleaning deployment

This commit is contained in:
kayomn 2022-12-25 19:00:00 +00:00
parent 8fcf4f7f85
commit 43e9791ffe
1 changed files with 4 additions and 0 deletions

View File

@ -322,6 +322,10 @@ 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 {