add support for downloading riivolution files

This commit is contained in:
Christopher Roy Bratusek 2013-06-20 18:01:50 +02:00
parent fc5eb22321
commit e34554d347

View File

@ -58,7 +58,9 @@ check_input_image () {
check_riivolution_patch () {
if [[ ! ${RIIVOLUTION}} ]]; then
if [[ ${DOWNLOAD} ]]; then
wget ${DOWNLOAD_LINK} -O ./${RIIVOLUTION_ZIP}
elif [[ ! ${RIIVOLUTION}} ]]; then
if [[ -e ./${RIIVOLUTION_ZIP} ]]; then
unzip ./${RIIVOLUTION_ZIP} >/dev/null
elif [[ ! -d ./${RIIVOLUTION_DIR} ]]; then
@ -108,6 +110,10 @@ while [[ $xcount -lt $pcount ]]; do
fi
;;
--download )
DOWNLOAD=TRUE
;;
--version=* )
VERSION=${1/*=}
case ${VERSION} in
@ -161,7 +167,8 @@ while [[ $xcount -lt $pcount ]]; do
--version=EURv1,EURv2,USAv1,USAv2,JPNv1 | specify your game version
--customdid=SMNP02 | specify a custom ID to use for the game
--sharesave | let modified game share savegame with original game
--clean | cleanup the build-directory"
--clean | cleanup the build-directory
--download | download riivolution patchfiles"
exit 0
;;
esac