Fix attempt to write on readonly mods ini

This commit is contained in:
kayomn 2022-12-23 15:13:26 +00:00
parent d35eb6016d
commit 62318db717
1 changed files with 1 additions and 1 deletions

View File

@ -527,7 +527,7 @@ func (game *Game) saveDeployment() error {
}
func (game *Game) saveMods() error {
var file, updateError = os.Open(filepath.Join(configPath(), game.Name, "mods.ini"))
var file, updateError = os.Create(filepath.Join(configPath(), game.Name, "mods.ini"))
if updateError != nil {
return updateError