Skip to content

Commit

Permalink
Create process_textures_logo.bat
Browse files Browse the repository at this point in the history
  • Loading branch information
LlysiX committed Jan 15, 2024
1 parent d6cb561 commit d1bd43d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions windows_bats/process_textures_logo.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
mkdir "%~dp0..\_tmp"
cd "..\custom_textures/logo"
FOR /F "tokens=*" %%G IN ('dir /b *.jpg') DO "%~dp0..\dependencies/magick/magick.exe" convert "%~dp0..\custom_textures\logo/%%G" "%~dp0..\custom_textures\logo\%%~nG.png"
FOR /F "tokens=*" %%G IN ('dir /b *.bmp') DO "%~dp0..\dependencies/magick/magick.exe" convert "%~dp0..\custom_textures\logo/%%G" "%~dp0..\custom_textures\logo\%%~nG.png"
FOR /F "tokens=*" %%G IN ('dir /b *.png') DO "%~dp0..\dependencies/superfreq.exe" png2tex "%~dp0..\custom_textures\logo/%%G" "%~dp0..\_ark\track\logo\gen\%%~nG.png_xbox" --platform x360 --miloVersion 25
del sed* /a /s
cd "%~dp0..\_ark/track/logo/gen"
FOR /F "tokens=*" %%G IN ('dir /b *.png_xbox') DO python "%~dp0..\dependencies/swap_rb_art_bytes.py" "%~dp0..\_ark/track/logo/gen/%%G" "%~dp0..\_ark/track/logo/gen/%%~nG.png_ps3"
cd "%~dp0..\custom_textures/logo"
FOR /F "tokens=*" %%G IN ('dir /b *.png') DO "%~dp0..\dependencies/superfreq.exe" png2tex "%~dp0..\custom_textures\logo/%%G" "%~dp0..\_tmp\%%~nG.bmp_ps2"
cd "%~dp0..\_tmp"
FOR /F "tokens=*" %%G IN ('dir /b *.bmp_ps2') DO "%~dp0..\dependencies/windows/superfreq.exe" tex2png "%~dp0..\_tmp/%%G" "%~dp0..\_tmp\%%~nG.png"
FOR /F "tokens=*" %%G IN ('dir /b *.png') DO "%~dp0..\dependencies/windows/superfreq.exe" png2tex "%~dp0..\_tmp/%%G" "%~dp0..\_ark\track\logo\gen\%%~nG.png_ps2"
cd "%~dp0..\"
rmdir "%~dp0..\_tmp" /s /q

0 comments on commit d1bd43d

Please sign in to comment.