-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathinstall.bat
25 lines (19 loc) · 888 Bytes
/
install.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
@echo off
setlocal EnableDelayedExpansion
if "%CRYSIS_INSTALL_DIR%"=="" (goto err_missing_env)
set SOURCE_DIR=%~dp0
set VRMOD_INSTALL_DIR=%CRYSIS_INSTALL_DIR%\Mods\VRMod
if not exist %VRMOD_INSTALL_DIR%\Bin64 (mkdir %VRMOD_INSTALL_DIR%\Bin64)
xcopy /i /y %SOURCE_DIR%\*.xml %VRMOD_INSTALL_DIR%
xcopy /y %SOURCE_DIR%\Bin64\VRMod.dll %VRMOD_INSTALL_DIR%\Bin64
xcopy /y %SOURCE_DIR%\Bin64\CrysisVR.exe %CRYSIS_INSTALL_DIR%\Bin64
xcopy /y %SOURCE_DIR%\Code\ThirdParty\bhaptics\bin\win64\haptic_library.dll %CRYSIS_INSTALL_DIR%\Bin64
xcopy /y %SOURCE_DIR%\Code\ThirdParty\ForceTubeVR\bin\ForceTubeVR_API_x64.dll %CRYSIS_INSTALL_DIR%\Bin64
xcopy /i /s /y %SOURCE_DIR%\Game %VRMOD_INSTALL_DIR%\Game
xcopy /y %SOURCE_DIR%\README.md %VRMOD_INSTALL_DIR%
xcopy /y %SOURCE_DIR%\LICENSE.txt %VRMOD_INSTALL_DIR%
goto eof
:err_missing_env
echo CRYSIS_INSTALL_DIR was not set, aborting
exit 1
:eof