From d842780c73861efa312c71576f652398c3c8d432 Mon Sep 17 00:00:00 2001 From: derrod Date: Sat, 24 Oct 2020 19:23:40 +0200 Subject: [PATCH] [lfs] Do not remove comments from ini files Fixes #105 --- legendary/lfs/lgndry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legendary/lfs/lgndry.py b/legendary/lfs/lgndry.py index 13cbaa2..460fc13 100644 --- a/legendary/lfs/lgndry.py +++ b/legendary/lfs/lgndry.py @@ -27,7 +27,7 @@ class LGDLFS: # EGS metadata self._game_metadata = dict() # Config with game specific settings (e.g. start parameters, env variables) - self.config = configparser.ConfigParser() + self.config = configparser.ConfigParser(comment_prefixes='/', allow_no_value=True) self.config.optionxform = str # ensure folders exist.