Fix attempt to write on readonly mods ini
This commit is contained in:
parent
d35eb6016d
commit
62318db717
|
@ -527,7 +527,7 @@ func (game *Game) saveDeployment() error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (game *Game) saveMods() 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 {
|
if updateError != nil {
|
||||||
return updateError
|
return updateError
|
||||||
|
|
Loading…
Reference in New Issue