@if "%DEBUG%" == "" @echo off
if "%OS%"=="Windows_NT" (
    setlocal
    setlocal enabledelayedexpansion
)

set MODE=%1
if "%MODE%" == "" (
    set MODE=mtesrl
) else (
    shift
)
echo "Current mode=%MODE% (alternatives are: mtesrl|embedded)"

if "%PROCESSOR_ARCHITECTURE%"=="AMD64" (
    set "PATH=..\..\..\%MODE%\win64;..\lib\win64;%PATH%"
) else (
    set "PATH=..\..\..\%MODE%\win32;..\lib\win32;%PATH%"
)

gradlew run -Pargs="%*"
