[core] Strip leading slashes from executable path

Fixes #42 and launching Hyper Light Drifter
This commit is contained in:
derrod 2020-05-23 12:43:37 +02:00
parent 3c0a8be3dd
commit e9a959e3a7

View file

@ -247,7 +247,8 @@ class LegendaryCore:
if user:
user_name = user
game_exe = os.path.join(install.install_path, install.executable)
game_exe = os.path.join(install.install_path,
install.executable.replace('\\', '/').lstrip('/'))
working_dir = os.path.split(game_exe)[0]
params = []