[core] Fix game path on linux (\ vs /)

This commit is contained in:
derrod 2020-05-30 00:49:48 +02:00
parent 9dbc57ece7
commit a488d32502

View file

@ -889,7 +889,7 @@ class LegendaryCore:
if os.name != 'nt' and not lgd_igame.install_path.startswith('/'):
# todo use ${WINEPREFIX}/dosdevices to make sure this is correct
if lgd_igame.install_path.startswith('Z:'):
new_path = lgd_igame.install_path[2:]
new_path = lgd_igame.install_path[2:].replace('\\', '/')
else:
wine_pfx = self.egl.programdata_path.partition('ProgramData')[0]
new_path = os.path.join(wine_pfx,