@echo off
rem ---------------------------------------------------------------------------
rem  BoardRaid one-click updater -- launcher (ASCII only, see the .ps1 header).
rem
rem  Double-click this file. PowerShell refuses to run a .ps1 by double-click, so
rem  this .cmd is the entry point: it calls the .ps1 sitting next to it with
rem  -ExecutionPolicy Bypass (process-scoped, nothing is changed system-wide).
rem
rem  You may also DRAG a folder onto this file (a game folder, a .minecraft folder
rem  or a mods folder). The path is forwarded to the script as an argument.
rem ---------------------------------------------------------------------------
setlocal
set "HERE=%~dp0"
set "SCRIPT=%HERE%boardraid-updater.ps1"

if not exist "%SCRIPT%" (
  echo.
  echo   [FAIL] boardraid-updater.ps1 was not found next to this file.
  echo          Keep both files in the same folder and try again.
  echo.
  pause
  exit /b 1
)

powershell -NoProfile -ExecutionPolicy Bypass -File "%SCRIPT%" %*

echo.
pause
