From 3011788cdd0765cd86ca022b5d4b500df2049407 Mon Sep 17 00:00:00 2001 From: guihkx <626206+guihkx@users.noreply.github.com> Date: Mon, 18 Nov 2024 19:27:45 -0300 Subject: [PATCH] [lfs] Allow more common characters as comment prefixes In addition to the "/" character, this also allows ";" and "#" to be used as comment prefix characters in "config.ini". --- 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 2e9b0bf2..706f284d 100644 --- a/legendary/lfs/lgndry.py +++ b/legendary/lfs/lgndry.py @@ -47,7 +47,7 @@ def __init__(self, config_file=None): self._overlay_update_info = None self._overlay_install_info = None # Config with game specific settings (e.g. start parameters, env variables) - self.config = LGDConf(comment_prefixes='/', allow_no_value=True) + self.config = LGDConf(comment_prefixes=(';', '#', '/'), allow_no_value=True) if config_file: # if user specified a valid relative/absolute path use that,