proton: Don't crash on invalid VR config file

This commit is contained in:
Andrew Eikum 2018-12-11 08:14:35 -06:00
parent c74de6a23b
commit 0e15c0048f

4
proton
View file

@ -340,8 +340,8 @@ with prefix_lock:
if vr_log is None:
vr_log = j["log"][0]
except (ValueError, OSError):
pass
except (TypeError, ValueError, OSError):
log("Missing or invalid openvrpaths.vrpath file! " + str(sys.exc_info()[1]))
makedirs(prefix + "/drive_c/users/steamuser/Local Settings/Application Data/openvr")