1
0
Fork 0
mirror of https://github.com/derrod/legendary.git synced 2025-01-09 06:05:28 +00:00

[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".
This commit is contained in:
guihkx 2024-11-18 19:27:45 -03:00
parent 3963382b3f
commit 3011788cdd
No known key found for this signature in database

View file

@ -47,7 +47,7 @@ class LGDLFS:
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,