@echo off
rem Points the SBRW launcher's CDN domains at the public NFS World server.
rem RUN AS ADMINISTRATOR (right click -> Run as administrator).
net session >nul 2>&1
if %errorlevel% neq 0 (
    echo ERROR: right-click this file and choose "Run as administrator".
    pause
    exit /b 1
)
set HOSTS=%SystemRoot%\System32\drivers\etc\hosts
findstr /c:"cdn.soapboxrace.world" "%HOSTS%" >nul 2>&1
if %errorlevel% neq 0 (
    echo 95.165.169.188 cdn.soapboxrace.world api.worldunited.gg files.worldunited.gg cdn.worldunited.gg>> "%HOSTS%"
    echo OK: hosts entries added.
) else (
    echo OK: hosts entries already present.
)
ipconfig /flushdns >nul
pause
