* Added more Dink media, trying to get the html5 build to work "out of the box". Need to run media/update_media.bat to create the audio/interface dirs in bin!
git-svn-id: svn://rtsoft.com/rtsvn/projects/RTDink@1606 353e56fe-9613-0410-8469-b96ad8e6f29c
This commit is contained in:
parent
a3aece1f5d
commit
8e575535ed
260 changed files with 2304 additions and 0 deletions
63
media/update_media.bat
Normal file
63
media/update_media.bat
Normal file
|
@ -0,0 +1,63 @@
|
|||
REM Make fonts
|
||||
|
||||
set PACK_EXE=..\..\.\shared\win\utils\RTPack.exe
|
||||
|
||||
REM Delete all existing packed textures from this dir
|
||||
cd interface
|
||||
for /r %%f in (*.rttex) do del %%f
|
||||
cd ..
|
||||
|
||||
for /r %%f in (font*.txt) do %PACK_EXE% -make_font %%f
|
||||
|
||||
REM Process our images and textures and copy them into the bin directory
|
||||
|
||||
REM -pvrtc4 for compressed, -pvrt4444 or -pvrt8888 (32 bit) for uncompressed
|
||||
|
||||
|
||||
|
||||
cd game
|
||||
for /r %%f in (*.bmp *.png) do ..\%PACK_EXE% -pvrt8888 %%f
|
||||
cd ..
|
||||
|
||||
cd interface
|
||||
for /r %%f in (*.bmp *.png) do ..\%PACK_EXE% -ultra_compress 90 -pvrt8888 %%f
|
||||
cd ..
|
||||
|
||||
REM Custom things that don't need preprocessing
|
||||
|
||||
|
||||
REM Final compression
|
||||
for /r %%f in (*.rttex) do %PACK_EXE% %%f
|
||||
|
||||
REM Delete things we don't want copied
|
||||
del interface\font_*.rttex
|
||||
|
||||
rmdir ..\bin\interface /S /Q
|
||||
rmdir ..\bin\audio /S /Q
|
||||
rmdir ..\bin\game /S /Q
|
||||
|
||||
REM copy the stuff we care about
|
||||
|
||||
mkdir ..\bin\interface
|
||||
xcopy interface ..\bin\interface /E /F /Y /EXCLUDE:exclude.txt
|
||||
|
||||
mkdir ..\bin\audio
|
||||
xcopy audio ..\bin\audio /E /F /Y /EXCLUDE:exclude.txt
|
||||
|
||||
mkdir ..\bin\game
|
||||
xcopy game ..\bin\game /E /F /Y /EXCLUDE:game_exclude.txt
|
||||
|
||||
|
||||
REM Convert everything to lowercase, otherwise the iphone will choke on the files
|
||||
REM for /r %%f in (*.*) do ..\media\LowerCase.bat %%f
|
||||
|
||||
del icon.rttex
|
||||
del default.rttex
|
||||
|
||||
REM Do a little cleanup in the dink bin dir as well
|
||||
del ..\bin\continue_state.dat /s
|
||||
del ..\bin\save*.dat /s
|
||||
del ..\bin\quicksave.dat /s
|
||||
del ..\bin\autosave*.dat /s
|
||||
|
||||
pause
|
Loading…
Add table
Add a link
Reference in a new issue