From 2484e65c42ba796f346f457678b8860c15af27cd Mon Sep 17 00:00:00 2001 From: pathmann Date: Sat, 23 Sep 2017 03:08:07 +0200 Subject: [PATCH] load multiline strings from vdf --- lutris/util/steam.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lutris/util/steam.py b/lutris/util/steam.py index 8e4314b64..a8ce961c9 100644 --- a/lutris/util/steam.py +++ b/lutris/util/steam.py @@ -31,6 +31,12 @@ def vdf_parse(steam_config_file, config): return config if not line or line.strip() == "}": 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("\"") if len(line_elements) == 3: key = line_elements[1]