From 62318db7177c2450c571ee64b76f629ff61ffce7 Mon Sep 17 00:00:00 2001 From: kayomn Date: Fri, 23 Dec 2022 15:13:26 +0000 Subject: [PATCH] Fix attempt to write on readonly mods ini --- manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manager.go b/manager.go index 03faa0e..13e2275 100644 --- a/manager.go +++ b/manager.go @@ -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