Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions run-vm
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,11 @@ def run_scummvm():
log('working dir: "{}"'.format(os.getcwd()))
cmd = settings.get_scummvm_cmd()
install_dir = toolbox.guess_game_install_dir()
if install_dir:
cmd = [x.replace('%install_dir%', install_dir) for x in cmd]
else:
if not install_dir:
log_warn('unrecognized installation directory')
install_dir = os.getcwd()

cmd = [x.replace('%install_dir%', install_dir) for x in cmd]

# install_dir has some escaped characters (on purpose)
# TODO: split escaping into a separate function
Expand Down