Skip to content

Commit

Permalink
Fix BUG options not being saved when running mod for 1st time
Browse files Browse the repository at this point in the history
  • Loading branch information
f1rpo committed Jul 9, 2023
1 parent 2550012 commit c6f337d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Assets/Python/BUG/configobj.py
Expand Up @@ -2015,6 +2015,9 @@ def write(self, outfile=None, section=None):
output = BOM_UTF8 + output
if outfile is not None:
outfile.write(output)
# <trs.fix> Need to remember filename
if self.filename is None:
self.filename = outfile.name # </trs.fix>
else:
h = open(self.filename, 'w')
h.write(output)
Expand Down

0 comments on commit c6f337d

Please sign in to comment.