From d0c4e14735e9fd9fe99c09a035e37d68fe3df316 Mon Sep 17 00:00:00 2001 From: Andrew West Date: Sat, 12 Jun 2021 16:38:45 +0100 Subject: [PATCH] Allow running non-steam scummvm games --- run-vm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/run-vm b/run-vm index 042d286..b0809d8 100755 --- a/run-vm +++ b/run-vm @@ -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