2016-06-09 09:46:46 +00:00
|
|
|
@ECHO OFF
|
|
|
|
SETLOCAL
|
|
|
|
|
|
|
|
set origdir=%cd%
|
|
|
|
cd /d %~dp0..\..\
|
|
|
|
set base_dir=%cd%
|
|
|
|
|
|
|
|
cd /d %origdir%
|
|
|
|
|
|
|
|
echo Building Lang files
|
2023-01-23 06:55:28 +00:00
|
|
|
xcopy "%base_dir%/Lang" "%base_dir%/Android/assets/project64_data/Lang/" /D /I /F /Y /E
|
2016-06-09 09:46:46 +00:00
|
|
|
IF %ERRORLEVEL% NEQ 0 (exit /B 1)
|
|
|
|
|
|
|
|
echo Copy config files
|
2023-01-23 06:55:28 +00:00
|
|
|
IF NOT EXIST "%base_dir%/Android/assets/project64_data/Config/" mkdir "%base_dir%/Android/assets/project64_data/Config/"
|
|
|
|
copy "%base_dir%\Config\Audio.rdb" "%base_dir%\Android\assets\project64_data\Config\"
|
2017-09-27 20:35:18 +00:00
|
|
|
IF %ERRORLEVEL% NEQ 0 (exit /B 1)
|
|
|
|
|
2023-01-23 06:55:28 +00:00
|
|
|
copy "%base_dir%\Config\Video.rdb" "%base_dir%\Android\assets\project64_data\Config\"
|
2016-06-09 09:46:46 +00:00
|
|
|
IF %ERRORLEVEL% NEQ 0 (exit /B 1)
|
|
|
|
|
2023-01-23 06:55:28 +00:00
|
|
|
copy "%base_dir%\Config\Project64.rdb" "%base_dir%\Android\assets\project64_data\Config\"
|
2016-06-09 09:46:46 +00:00
|
|
|
IF %ERRORLEVEL% NEQ 0 (exit /B 1)
|
|
|
|
|
2023-01-23 06:55:28 +00:00
|
|
|
copy "%base_dir%\Config\Project64.rdx" "%base_dir%\Android\assets\project64_data\Config\"
|
2016-06-09 09:46:46 +00:00
|
|
|
IF %ERRORLEVEL% NEQ 0 (exit /B 1)
|
|
|
|
|
2023-01-23 06:55:28 +00:00
|
|
|
IF NOT EXIST "%base_dir%/Android/assets/project64_data/Config/Cheats/" mkdir "%base_dir%/Android/assets/project64_data/Config/Cheats/"
|
|
|
|
xcopy "%base_dir%/Config/Cheats" "%base_dir%/Android/assets/project64_data/Config/Cheats/" /D /I /F /Y /E
|
2021-07-12 23:26:14 +00:00
|
|
|
IF %ERRORLEVEL% NEQ 0 (exit /B 1)
|
|
|
|
|
2023-01-23 06:55:28 +00:00
|
|
|
IF NOT EXIST "%base_dir%/Android/assets/project64_data/Config/Enhancements/" mkdir "%base_dir%/Android/assets/project64_data/Config/Enhancements/"
|
|
|
|
xcopy "%base_dir%/Config/Enhancements" "%base_dir%/Android/assets/project64_data/Config/Enhancements/" /D /I /F /Y /E
|
2016-06-09 09:46:46 +00:00
|
|
|
IF %ERRORLEVEL% NEQ 0 (exit /B 1)
|
|
|
|
|
2023-02-06 07:11:23 +00:00
|
|
|
IF NOT EXIST "%base_dir%/Android/app/src/main/assets/" mkdir "%base_dir%/Android/app/src/main/assets/"
|
|
|
|
IF EXIST "%base_dir%/Android/app/src/main/assets/assets.zip" del "%base_dir%\Android\app\src\main\assets\assets.zip"
|
|
|
|
powershell Compress-Archive "%base_dir%/Android/assets/*" "%base_dir%/Android/app/src/main/assets/assets.zip"
|
|
|
|
|
2016-06-09 09:46:46 +00:00
|
|
|
goto :end
|
|
|
|
|
|
|
|
:End
|
|
|
|
ENDLOCAL
|
|
|
|
exit /B 0
|