forked from SH4FS0c13ty/TigerXDragon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstage3.bat
42 lines (42 loc) · 3.02 KB
/
stage3.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
@echo off
title Toradora! Portable Translation Toolkit Stage 3 by SH4FS0c13ty
chcp 65001
cls
echo.
echo ████████╗██╗ ██████╗ ███████╗██████╗ ██╗ ██╗ ██████╗ ██████╗ █████╗ ██████╗ ██████╗ ███╗ ██╗
echo ╚══██╔══╝██║██╔════╝ ██╔════╝██╔══██╗ ╚██╗██╔╝ ██╔══██╗██╔══██╗██╔══██╗██╔════╝ ██╔═══██╗████╗ ██║
echo ██║ ██║██║ ███╗█████╗ ██████╔╝ ╚███╔╝ ██║ ██║██████╔╝███████║██║ ███╗██║ ██║██╔██╗ ██║
echo ██║ ██║██║ ██║██╔══╝ ██╔══██╗ ██╔██╗ ██║ ██║██╔══██╗██╔══██║██║ ██║██║ ██║██║╚██╗██║
echo ██║ ██║╚██████╔╝███████╗██║ ██║ ██╔╝ ██╗ ██████╔╝██║ ██║██║ ██║╚██████╔╝╚██████╔╝██║ ╚████║
echo ╚═╝ ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═══╝
echo.
echo Toradora! Portable Translation Toolkit Stage 3 by SH4FS0c13ty
echo Stage 3 will generate the seekmap.dat file and repack everything.
echo.
SET dir=%~dp0
set /p start=Start stage 3 (y/n)?
if /i "%start%" NEQ "y" exit
echo Repacking resource.dat file ...
cd DatWorker
%dir%\DatWorker\DatWorker.exe %dir%\DatWorker\resource.dat-LstOrder.lst
cd ..
echo Generating seekmap.dat ...
copy %dir%\DatWorker\resource.dat %dir%\DatWorker\Workspace\RES.DAT
copy %dir%\DatWorker\first\seekmap.dat %dir%\DatWorker\Workspace\seekmap.txt.gz
cd DatWorker\Workspace
%dir%\DatWorker\Workspace\gzip.exe -d -q %dir%\DatWorker\Workspace\seekmap.txt.gz
%dir%\DatWorker\Workspace\modseekmap.exe
%dir%\DatWorker\Workspace\gzip.exe -n9 %dir%\DatWorker\Workspace\seekmap.new
rename %dir%\DatWorker\Workspace\seekmap.new.gz seekmap.dat
copy %dir%\DatWorker\Workspace\seekmap.dat %dir%\DatWorker\first\seekmap.dat
cd ..
%dir%\DatWorker\DatWorker.exe %dir%\DatWorker\first.dat-LstOrder.lst
cd ..
mkdir %dir%\export\PSP_GAME\
mkdir %dir%\export\PSP_GAME\USRDIR\
copy %dir%\DatWorker\resource.dat %dir%\export\PSP_GAME\USRDIR\resource.dat
copy %dir%\DatWorker\first.dat %dir%\export\PSP_GAME\USRDIR\first.dat
copy %dir%\DatWorker\Workspace\PARAM.SFO %dir%\export\PSP_GAME\PARAM.SFO
echo Files exported in export\ folder.
echo Done!
pause