mirror of
https://github.com/OpenDriver2/REDRIVER2.git
synced 2024-11-25 03:42:34 +01:00
- added bash version of game install scripts
This commit is contained in:
parent
64a224c1a7
commit
dee614fa3d
@ -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
23
data/_convert_cd_fmv_xa.sh
Executable 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
13
data/install/conv.sh
Executable 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
0
data/install/jpsxdec.jar
Normal file → Executable file
Loading…
Reference in New Issue
Block a user