mirror of
https://gitlab.com/Nanolx/patchimage.git
synced 2024-11-24 10:09:22 +01:00
generic wiimmfi patcher!
This commit is contained in:
parent
87041901a9
commit
4a1bd8c20c
@ -103,6 +103,10 @@ case ${GAME} in
|
|||||||
source ${PATCHIMAGE_SCRIPT_DIR}/wiimmfi.sh
|
source ${PATCHIMAGE_SCRIPT_DIR}/wiimmfi.sh
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
o | O | Wiimmpatch )
|
||||||
|
source ${PATCHIMAGE_SCRIPT_DIR}/wiimmfi_generic.sh
|
||||||
|
;;
|
||||||
|
|
||||||
1 | ParallelWorlds | "The Legend of Zelda: Parallel Worlds" )
|
1 | ParallelWorlds | "The Legend of Zelda: Parallel Worlds" )
|
||||||
source ${PATCHIMAGE_SCRIPT_DIR}/parallelworlds.sh
|
source ${PATCHIMAGE_SCRIPT_DIR}/parallelworlds.sh
|
||||||
;;
|
;;
|
||||||
|
@ -9,7 +9,7 @@ setup_tools () {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
#if [[ $(which wit) ]]; then
|
#if [[ $(which wit) ]]; then
|
||||||
WIT=$(which wit)
|
# WIT=$(which wit)
|
||||||
#else
|
#else
|
||||||
# WIT=${PATCHIMAGE_TOOLS_DIR}/wit.${SUFFIX}
|
# WIT=${PATCHIMAGE_TOOLS_DIR}/wit.${SUFFIX}
|
||||||
#fi
|
#fi
|
||||||
@ -57,7 +57,8 @@ K NSMBW3: The Final Levels
|
|||||||
L Super Mario Vacation
|
L Super Mario Vacation
|
||||||
M Awesomer Super Luigi Mini
|
M Awesomer Super Luigi Mini
|
||||||
|
|
||||||
N Wiimfi Patcher. Patch all RMC??? to use Wiimm's server
|
N Wiimfi Patcher. Patch Mario Kart to use Wiimm's server
|
||||||
|
O Wiimfi Patcher. Patch WFC games to use Wiimm's server (exp)
|
||||||
|
|
||||||
1 The Legend of Zelda: Parallel Worlds
|
1 The Legend of Zelda: Parallel Worlds
|
||||||
"
|
"
|
||||||
@ -148,6 +149,10 @@ check_directories () {
|
|||||||
mkdir -p ${PATCHIMAGE_AUDIO_DIR}
|
mkdir -p ${PATCHIMAGE_AUDIO_DIR}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ ! -d ${PATCHIMAGE_COVER_DIR} ]]; then
|
||||||
|
mkdir -p ${PATCHIMAGE_COVER_DIR}
|
||||||
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -241,6 +246,20 @@ ask_input_image_mkwiimm () {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ask_input_image_wiimmfi () {
|
||||||
|
|
||||||
|
echo "Choose Wii Game Image to wiimmfi"
|
||||||
|
|
||||||
|
for image in ${1}/RMC???.{iso,wbfs}; do
|
||||||
|
if [[ -e ${image} && ! ${image} == "*/RMC*" ]]; then
|
||||||
|
echo " ${image##*/}"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
check_riivolution_patch () {
|
check_riivolution_patch () {
|
||||||
|
|
||||||
x=0
|
x=0
|
||||||
@ -280,8 +299,6 @@ check_riivolution_patch () {
|
|||||||
|
|
||||||
download_covers () {
|
download_covers () {
|
||||||
|
|
||||||
[[ ! -d ${PATCHIMAGE_COVER_DIR} ]] && mkdir -p ${PATCHIMAGE_COVER_DIR}
|
|
||||||
|
|
||||||
for path in cover cover3D coverfull disc disccustom; do
|
for path in cover cover3D coverfull disc disccustom; do
|
||||||
wget -O ${PATCHIMAGE_COVER_DIR}/${1}_${path}.png \
|
wget -O ${PATCHIMAGE_COVER_DIR}/${1}_${path}.png \
|
||||||
http://art.gametdb.com/wii/${path}/EN/${1}.png &>/dev/null \
|
http://art.gametdb.com/wii/${path}/EN/${1}.png &>/dev/null \
|
||||||
|
@ -60,6 +60,11 @@ patch_wiimm () {
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
|
if [[ ! -f ${IMAGE%/*}/${ID} ]]; then
|
||||||
|
echo "unvalid game passed from user-input. exit"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
cp -v ${IMAGE%/*}/${ID} . 2>/dev/null
|
cp -v ${IMAGE%/*}/${ID} . 2>/dev/null
|
||||||
./create-image.sh >/dev/null
|
./create-image.sh >/dev/null
|
||||||
mv -v ./wiimmfi-images/${ID} "${PATCHIMAGE_GAME_DIR}"/
|
mv -v ./wiimmfi-images/${ID} "${PATCHIMAGE_GAME_DIR}"/
|
||||||
|
Loading…
Reference in New Issue
Block a user