mirror of
https://github.com/lutris/lutris
synced 2024-11-05 18:10:49 +00:00
load multiline strings from vdf
This commit is contained in:
parent
c332fc8d03
commit
2484e65c42
1 changed files with 6 additions and 0 deletions
|
@ -31,6 +31,12 @@ def vdf_parse(steam_config_file, config):
|
||||||
return config
|
return config
|
||||||
if not line or line.strip() == "}":
|
if not line or line.strip() == "}":
|
||||||
return config
|
return config
|
||||||
|
while not line.strip().endswith("\""):
|
||||||
|
nextline = steam_config_file.readline()
|
||||||
|
if not nextline:
|
||||||
|
break
|
||||||
|
line = line[:-1] + nextline
|
||||||
|
|
||||||
line_elements = line.strip().split("\"")
|
line_elements = line.strip().split("\"")
|
||||||
if len(line_elements) == 3:
|
if len(line_elements) == 3:
|
||||||
key = line_elements[1]
|
key = line_elements[1]
|
||||||
|
|
Loading…
Reference in a new issue