proton: Fix null deref
This commit is contained in:
parent
4d127190a6
commit
10012eee17
1 changed files with 4 additions and 0 deletions
4
proton
4
proton
|
@ -34,6 +34,10 @@ def upgrade_pfx(old_ver):
|
||||||
return
|
return
|
||||||
|
|
||||||
log("Upgrading prefix from " + str(old_ver) + " to " + CURRENT_PREFIX_VERSION + " (" + os.environ["STEAM_COMPAT_DATA_PATH"] + ")")
|
log("Upgrading prefix from " + str(old_ver) + " to " + CURRENT_PREFIX_VERSION + " (" + os.environ["STEAM_COMPAT_DATA_PATH"] + ")")
|
||||||
|
|
||||||
|
if old_ver == None:
|
||||||
|
return
|
||||||
|
|
||||||
old_proton_ver, old_prefix_ver = old_ver.split('-')
|
old_proton_ver, old_prefix_ver = old_ver.split('-')
|
||||||
|
|
||||||
if old_proton_ver == "3.7" and old_prefix_ver == "1":
|
if old_proton_ver == "3.7" and old_prefix_ver == "1":
|
||||||
|
|
Loading…
Reference in a new issue