Skip to content

Commit

Permalink
sly_bake: Fix psarc command & add filelist for Sly 1
Browse files Browse the repository at this point in the history
  • Loading branch information
VelocityRa committed Dec 6, 2020
1 parent 541d72d commit db0c0a4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
4 changes: 4 additions & 0 deletions data/Sly1_filelist.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Sly1/SLY.WAC
Sly1/SLY_F.WAC
Sly1/SLY_S.WAC
Sly1/SLY.WAL
11 changes: 9 additions & 2 deletions sly_bake.bat
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,20 @@ set PSARC="D:\Nikos\Reversing\Tools\PS3 Tools\psarc.exe"

REM Replace 'y' below with nothing to disable compressing the level below
set ENABLE_COMPRESS_LEVEL=y
set LEVEL_PATH=D:\Nikos\Reversing\Sly\Code\sly_playground\tests\jb_intro_W.dec
set LEVEL_PATH=D:\Nikos\Reversing\Sly\Code\SlyCooper\tests\jb_intro_W.dec
set LEVEL_NAME_FINAL=jb_intro_W

if defined ENABLE_COMPRESS_LEVEL (
%SLY_TOOLS%\sly_compressor.exe "%LEVEL_DIR%\%LEVEL_NAME%" "%SLY1_DATA%\%LEVEL_NAME_FINAL%"
echo --- Compressing level %LEVEL_NAME_FINAL% ---
%SLY_TOOLS%\sly_compressor.exe %LEVEL_PATH% %SLY1_DATA%\%LEVEL_NAME_FINAL%
)

echo --- Packing to .WAC/.WAL ---
%SLY_TOOLS%\sly_packer.exe "%SLY1_DATA%" %SLY1_ROOT%

Robocopy %SLY_USRDIR% %CD%\data\Sly1_filelist.txt > nul

echo --- Packaging/compressing to .psarc ---
pushd %SLY_USRDIR%
%PSARC% create -y --output=%SLY_USRDIR%\Sly1.psarc --inputfile=%SLY_USRDIR%\Sly1_filelist.txt
popd

0 comments on commit db0c0a4

Please sign in to comment.