mirror of
https://github.com/lutris/lutris
synced 2024-09-15 22:09:55 +00:00
Do not take whole path as version for esync check
This commit is contained in:
parent
d2844b238e
commit
60a2d15e3e
|
@ -234,7 +234,11 @@ def is_version_esync(path):
|
|||
Returns:
|
||||
bool: True is the build is Esync capable
|
||||
"""
|
||||
version = path.lower()
|
||||
try:
|
||||
version = path.split("/")[-2].lower()
|
||||
except IndexError:
|
||||
logger.error("Invalid path %s", path)
|
||||
return False
|
||||
if "esync" in version or "lutris" in version or "proton" in version:
|
||||
return True
|
||||
|
||||
|
|
Loading…
Reference in a new issue