proton: Use _ for ignored values.
This commit is contained in:
parent
f5e17b49d2
commit
9e4a12cbaa
1 changed files with 4 additions and 4 deletions
8
proton
8
proton
|
@ -523,7 +523,7 @@ class CompatData:
|
||||||
try:
|
try:
|
||||||
old_proton_ver, old_prefix_ver = old_ver.split('-')
|
old_proton_ver, old_prefix_ver = old_ver.split('-')
|
||||||
old_proton_maj, old_proton_min = old_proton_ver.split('.')
|
old_proton_maj, old_proton_min = old_proton_ver.split('.')
|
||||||
new_proton_ver, new_prefix_ver = CURRENT_PREFIX_VERSION.split('-')
|
new_proton_ver, _ = CURRENT_PREFIX_VERSION.split('-')
|
||||||
new_proton_maj, new_proton_min = new_proton_ver.split('.')
|
new_proton_maj, new_proton_min = new_proton_ver.split('.')
|
||||||
|
|
||||||
if int(new_proton_maj) < int(old_proton_maj) or \
|
if int(new_proton_maj) < int(old_proton_maj) or \
|
||||||
|
@ -687,7 +687,7 @@ class CompatData:
|
||||||
for line in tracked_files:
|
for line in tracked_files:
|
||||||
prev_tracked_files.add(line.strip())
|
prev_tracked_files.add(line.strip())
|
||||||
with open(self.tracked_files_file, "a") as tracked_files:
|
with open(self.tracked_files_file, "a") as tracked_files:
|
||||||
for src_dir, dirs, files in os.walk(g_proton.default_pfx_dir):
|
for src_dir, _, files in os.walk(g_proton.default_pfx_dir):
|
||||||
rel_dir = src_dir.replace(g_proton.default_pfx_dir, "", 1).lstrip('/')
|
rel_dir = src_dir.replace(g_proton.default_pfx_dir, "", 1).lstrip('/')
|
||||||
if len(rel_dir) > 0:
|
if len(rel_dir) > 0:
|
||||||
rel_dir = rel_dir + "/"
|
rel_dir = rel_dir + "/"
|
||||||
|
@ -1214,10 +1214,10 @@ class Session:
|
||||||
config = os.environ["STEAM_COMPAT_CONFIG"]
|
config = os.environ["STEAM_COMPAT_CONFIG"]
|
||||||
|
|
||||||
while config:
|
while config:
|
||||||
(cur, sep, config) = config.partition(',')
|
(cur, _, config) = config.partition(',')
|
||||||
if cur.startswith("cmdlineappend:"):
|
if cur.startswith("cmdlineappend:"):
|
||||||
while comma_escaped(cur):
|
while comma_escaped(cur):
|
||||||
(a, b, c) = config.partition(',')
|
(a, _, c) = config.partition(',')
|
||||||
cur = cur[:-1] + ',' + a
|
cur = cur[:-1] + ',' + a
|
||||||
config = c
|
config = c
|
||||||
self.cmdlineappend.append(cur[14:].replace('\\\\','\\'))
|
self.cmdlineappend.append(cur[14:].replace('\\\\','\\'))
|
||||||
|
|
Loading…
Reference in a new issue