Files
airdef/dist/play.bat
T
chexit a6a13003c2
build / mod (push) Failing after 5m36s
build / game-linux (push) Has been skipped
build / game-macos (push) Has been cancelled
build / game-windows (push) Has been cancelled
build / release (push) Has been cancelled
AirDef: drones and air defence for a Horizon fork
The mod (airdef-mod/), its generated models and sounds, the fork's patches
over upstream Horizon (horizon-patches/, HORIZON_COMMIT), a cross-platform
build/install/run script (tools/airdef.py), CI that builds and releases on
every push (.gitea/workflows/build.yml) and a setup guide (docs/INSTALL.md).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 19:16:52 +03:00

28 lines
1.1 KiB
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
@echo off
rem AirDef: ставит мод и запускает игру (Windows). Лежит рядом с horizon-client.exe и airdef.hmod.
chcp 65001 >nul
setlocal enabledelayedexpansion
set "HERE=%~dp0"
if "%HORIZON_HOME%"=="" (set "GAME=%APPDATA%\horizon") else (set "GAME=%HORIZON_HOME%")
if not exist "%GAME%\horizon-mods" mkdir "%GAME%\horizon-mods"
copy /y "%HERE%airdef.hmod" "%GAME%\horizon-mods\airdef.hmod" >nul
if exist "%GAME%\horizon-mods\airdef" rmdir /s /q "%GAME%\horizon-mods\airdef"
set "LIST=%GAME%\horizon-mods.txt"
if not exist "%LIST%" type nul > "%LIST%"
findstr /v /b "mod.airdef:" "%LIST%" > "%LIST%.tmp"
echo mod.airdef:true>> "%LIST%.tmp"
move /y "%LIST%.tmp" "%LIST%" >nul
set "RES=%HORIZON_RESOURCES%"
if "%RES%"=="" (
for /d %%V in ("%APPDATA%\horizon-launcher\versions\*") do (
if exist "%%V\.local\horizon-client\26.3" set "RES=%%V\.local\horizon-client\26.3"
)
)
if "%RES%"=="" (
echo Не найдены ресурсы игры: установи Horizon через лаунчер и запусти его один раз.
pause
exit /b 1
)
cd /d "%GAME%"
"%HERE%horizon-client.exe" --resources "%RES%" %*