@echo off
setlocal
title ForceFeedback Test Circuit Update
cd /d "%~dp0"
echo Starting the client update process.
"%~dp0ForceFeedback Test Circuit.exe" %*
set "updateExitCode=%errorlevel%"
if not "%updateExitCode%"=="0" (
  echo.
  echo The update or restart failed. Check the message above.
  pause
)
exit /b %updateExitCode%
