-
Notifications
You must be signed in to change notification settings - Fork 5
/
sly_bake.bat
27 lines (21 loc) · 997 Bytes
/
sly_bake.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
26
27
@echo off
set SLY_USRDIR=D:\Emulators\rpcs3\dev_hdd0\game\NPUA80663\USRDIR
set SLY_TOOLS=D:\Nikos\Reversing\Sly\Code\SlyTools\cmake-build-relwithdebinfo
set SLY1_ROOT=%SLY_USRDIR%\Sly1
set SLY1_DATA=%SLY1_ROOT%\extracted
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\SlyTools\tests\uw_exterior_approach_W.dec
set LEVEL_NAME_FINAL=uw_exterior_approach_W
if defined ENABLE_COMPRESS_LEVEL (
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_1_packer.exe "%SLY1_DATA%" %SLY1_ROOT%
echo --- Packaging and compressing to .psarc ---
Robocopy %SLY_USRDIR% %CD%\data\Sly1_filelist.txt > nul
pushd %SLY_USRDIR%
%PSARC% create -y --output=%SLY_USRDIR%\Sly1.psarc --inputfile=%SLY_USRDIR%\Sly1_filelist.txt
popd