@echo off setlocal if /I "%~1"=="/dry-run" ( echo start_local_server.bat syntax check passed. echo PreServer: gametest.aceremake.online:15100 exit /b 0 ) pushd "%~dp0" set "PRE_SERVER=gametest.aceremake.online" set "EXECUTE_PATH=%CD%" if not exist "Updater.atm" ( echo Updater.atm was not found in: echo %CD% echo. echo Place this file in the game directory next to start.bat and Updater.atm. pause popd exit /b 1 ) for %%K in ( "HKCU\Software\Wikigames\NewRivalsEvolution\Configuration" "HKCU\Software\Wikigames\ACEonline-Suba\Configuration" "HKCU\Software\Wikigames\ACEonline-Suba_Test\Configuration" ) do ( reg add %%~K /f /v PreServerIPAddress /t REG_SZ /d "%PRE_SERVER%" >nul reg add %%~K /f /v ExecutePath /t REG_SZ /d "%EXECUTE_PATH%" >nul reg add %%~K /f /v ExecutableBinary /t REG_SZ /d "Engine.atm" >nul reg add %%~K /f /v PreServerIPHistory /t REG_SZ /d "%PRE_SERVER%" >nul reg add %%~K /f /v ExecuteBinHistory /t REG_SZ /d "Engine.atm" >nul reg add %%~K /f /v ExecutePathHistory /t REG_SZ /d "%EXECUTE_PATH%" >nul ) start "" "Updater.atm" "%PRE_SERVER%" popd endlocal