Files
MatchMaster_level/scripts/windows/StartEditor.bat
T

20 lines
465 B
Batchfile

@echo off
setlocal
pushd "%~dp0"
if errorlevel 1 goto folder_error
if not exist "runtime\node.exe" goto missing_runtime
"runtime\node.exe" "StartEditor.mjs"
set "EDITOR_EXIT=%ERRORLEVEL%"
popd
if not "%EDITOR_EXIT%"=="0" pause
exit /b %EDITOR_EXIT%
:missing_runtime
echo Missing runtime\node.exe. Extract the COMPLETE ZIP before starting.
popd
pause
exit /b 1
:folder_error
echo Cannot open the editor folder. Extract it to a writable folder first.
pause
exit /b 1