mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 01:45:28 +00:00
[core] Strip leading slashes from executable path
Fixes #42 and launching Hyper Light Drifter
This commit is contained in:
parent
3c0a8be3dd
commit
e9a959e3a7
|
@ -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 = []
|
||||
|
|
Loading…
Reference in a new issue