proton: Fix null deref

This commit is contained in:
Andrew Eikum 2018-08-23 09:42:18 -05:00
parent 4d127190a6
commit 10012eee17

4
proton
View File

@ -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":