From 75a78c45c4f0911b8343295a44752e588a820680 Mon Sep 17 00:00:00 2001 From: gibbed Date: Sun, 18 Aug 2019 09:33:59 -0500 Subject: [PATCH] More xb.bat fixes. - Properly check if candidate path exists. - Quote python path when invoking. --- xb.bat | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xb.bat b/xb.bat index 07d44540b..b3ba546b5 100644 --- a/xb.bat +++ b/xb.bat @@ -20,7 +20,7 @@ REM ============================================================================ REM Trampoline into xenia-build REM ============================================================================ -%PYTHON_EXE% xenia-build %* +"%PYTHON_EXE%" xenia-build %* EXIT /b %ERRORLEVEL% @@ -54,6 +54,10 @@ IF NOT DEFINED CANDIDATE_PATHS[%CANDIDATE_INDEX%] ( GOTO :found_python ) CALL SET CANDIDATE_PATH=%%CANDIDATE_PATHS[%CANDIDATE_INDEX%]%% +IF NOT EXIST %CANDIDATE_PATH% ( + SET /A CANDIDATE_INDEX+=1 + GOTO :check_candidate_loop +) CALL :get_size %CANDIDATE_PATH% IF %_SIZE% NEQ 0 ( SET FOUND_PATH=%CANDIDATE_PATH%