- added bash version of game install scripts

This commit is contained in:
Soapyman 2021-05-10 22:32:29 +06:00 committed by InspirationByte
parent 64a224c1a7
commit dee614fa3d
4 changed files with 38 additions and 2 deletions

View File

@ -3,7 +3,7 @@
set CD1_PATH=install/Driver2CD1.bin
set CD2_PATH=install/Driver2CD2.bin
set JPSXDEC_PATH=install/jpsxdec
set JPSXDEC_PATH=install
rem -- Check if Java is installed --
java -version 1>nul 2>nul || (
@ -24,4 +24,4 @@ rem del Driver2temp.idx
echo DONE
pause
pause

23
data/_convert_cd_fmv_xa.sh Executable file
View File

@ -0,0 +1,23 @@
#!/bin/sh
export CD1_PATH="./install/Driver2CD1.bin"
export CD2_PATH="./install/Driver2CD2.bin"
export JPSXDEC_PATH="./install"
# -- Check if Java is installed --
if !(java -version 2>&1 >/dev/null | grep "java version\|openjdk version"); then
echo "Java NOT installed!"
exit
fi
# -- Extract CD movies and audios --
echo "Processing CD1..."
./install/conv.sh ${CD1_PATH} Driver2temp.idx
echo "Processing CD2..."
./install/conv.sh ${CD2_PATH} Driver2temp.idx
rm Driver2temp.idx
echo "DONE"

13
data/install/conv.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/sh
echo ${JPSXDEC_PATH}
echo "BUILDING INDEXES"
java -jar ${JPSXDEC_PATH}/jpsxdec.jar -f $1 -x $2
echo "---- CONVERTING VIDEO ----"
java -jar ${JPSXDEC_PATH}/jpsxdec.jar -x $2 -a video -quality psx -vf avi:mjpg -up Lanczos3
echo "---- CONVERTING AUDIO ----"
java -jar ${JPSXDEC_PATH}/jpsxdec.jar -x $2 -a audio -quality psx -af wav

0
data/install/jpsxdec.jar Normal file → Executable file
View File