mirror of
https://gitlab.com/Nanolx/patchimage.git
synced 2024-11-28 03:54:22 +01:00
several fixups for mario kart wiimm
This commit is contained in:
parent
ff21ec554c
commit
4c4387002d
@ -1,3 +1,10 @@
|
|||||||
|
v4.98:
|
||||||
|
- mario kart wiimm: when building mario kart wiimm from scratch
|
||||||
|
use the wiimmfi mario kart patcher, not wiimmfi generic. Also
|
||||||
|
some string changes and more detailed info on current step
|
||||||
|
- supply wit 2.29a and szs 1.35a
|
||||||
|
- always use supplied tools (don't fallback to system ones)
|
||||||
|
|
||||||
v4.97:
|
v4.97:
|
||||||
- changed IDs in the game selection menu (old A..Z for Wii, 1..9
|
- changed IDs in the game selection menu (old A..Z for Wii, 1..9
|
||||||
for ROMs / new <ID>1..<ID>..99 ; example: NSMB1, NSMB2, NSMB3)
|
for ROMs / new <ID>1..<ID>..99 ; example: NSMB1, NSMB2, NSMB3)
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
GAME_TYPE="MKWIIMM"
|
GAME_TYPE="MKWIIMM"
|
||||||
GAME_NAME="Mario Kart Wiimm"
|
GAME_NAME="Mario Kart Wiimm"
|
||||||
|
DOWNLOAD_LINK="http://download.wiimm.de/wiimmfi/mkw-wiimmfi-patcher.7z"
|
||||||
|
|
||||||
show_notes () {
|
show_notes () {
|
||||||
|
|
||||||
@ -36,6 +37,26 @@ type in ALL or an ID"
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wiimmfi () {
|
||||||
|
|
||||||
|
mkdir -p "${HOME}/.patchimage/tools/"
|
||||||
|
cd ${HOME}/.patchimage/tools
|
||||||
|
rm -rf wiimmfi-patcher/ *.7z*
|
||||||
|
wget "${DOWNLOAD_LINK}" >/dev/null
|
||||||
|
${UNP} mkw-wiimmfi-patcher.7z >/dev/null
|
||||||
|
mv mkw-wiimmfi-patcher*/ wiimmfi-patcher
|
||||||
|
chmod +x wiimmfi-patcher/*.sh
|
||||||
|
rm *.7z
|
||||||
|
|
||||||
|
ln -s "${1}" .
|
||||||
|
./create-image.sh >/dev/null
|
||||||
|
echo "*** 9) storing game in ${PATCHIMAGE_GAME_DIR}/${1##*/}"
|
||||||
|
mv -v ./wiimmfi-images/${1##*/} "${PATCHIMAGE_GAME_DIR}"/
|
||||||
|
|
||||||
|
rm -rf ${HOME}/.patchimage/tools/wiimfi-patcher/
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
build_mkwiimm () {
|
build_mkwiimm () {
|
||||||
|
|
||||||
DIST=$(gawk -F \: "/^${1}/"'{print $2}' < ${PATCHIMAGE_SCRIPT_DIR}/mkwiimm.db)
|
DIST=$(gawk -F \: "/^${1}/"'{print $2}' < ${PATCHIMAGE_SCRIPT_DIR}/mkwiimm.db)
|
||||||
@ -50,11 +71,14 @@ build_mkwiimm () {
|
|||||||
rm -rf ${FILENAME/.7z}
|
rm -rf ${FILENAME/.7z}
|
||||||
|
|
||||||
if [[ -f ${PATCHIMAGE_RIIVOLUTION_DIR}/${FILENAME} ]]; then
|
if [[ -f ${PATCHIMAGE_RIIVOLUTION_DIR}/${FILENAME} ]]; then
|
||||||
|
echo "*** 5) extracting mkwiimm files"
|
||||||
${UNP} ${PATCHIMAGE_RIIVOLUTION_DIR}/${FILENAME} >/dev/null
|
${UNP} ${PATCHIMAGE_RIIVOLUTION_DIR}/${FILENAME} >/dev/null
|
||||||
elif [[ -f ${PWD}/${FILENAME} ]]; then
|
elif [[ -f ${PWD}/${FILENAME} ]]; then
|
||||||
|
echo "*** 5) extracting mkwiimm files"
|
||||||
${UNP} ${PWD}/${FILENAME} >/dev/null
|
${UNP} ${PWD}/${FILENAME} >/dev/null
|
||||||
else
|
else
|
||||||
wget -O ${PATCHIMAGE_RIIVOLUTION_DIR}/${FILENAME} ${DOWNLOAD}
|
echo "*** 5) downloading extracting mkwiimm files"
|
||||||
|
wget -O ${PATCHIMAGE_RIIVOLUTION_DIR}/${FILENAME} ${DOWNLOAD} >/dev/null
|
||||||
${UNP} ${PATCHIMAGE_RIIVOLUTION_DIR}/${FILENAME} >/dev/null
|
${UNP} ${PATCHIMAGE_RIIVOLUTION_DIR}/${FILENAME} >/dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -79,19 +103,17 @@ ISOMODE=wbfs
|
|||||||
SPLITISO=
|
SPLITISO=
|
||||||
PRIV_SAVEGAME=${MKWIIMM_OWN_SAVE}" > ${PWD}/config.def
|
PRIV_SAVEGAME=${MKWIIMM_OWN_SAVE}" > ${PWD}/config.def
|
||||||
|
|
||||||
echo "creating >${DIST}<, stand by..."
|
echo "*** 6) creating >${DIST}<, stand by"
|
||||||
./create-image.sh -a --dest=${PWD}/RMC${REG}${ID}.wbfs >/dev/null
|
./create-image.sh -a --dest=${PWD}/RMC${REG}${ID}.wbfs >/dev/null
|
||||||
else
|
else
|
||||||
echo "creating >${DIST}<"
|
echo "*** 7) creating >${DIST}<"
|
||||||
./create-image.sh --dest=${PWD}/RMC${REG}${ID}.wbfs
|
./create-image.sh --dest=${PWD}/RMC${REG}${ID}.wbfs
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "patching >${DIST}< to use custom server..."
|
echo "*** 8) patching >${DIST}< to use custom server"
|
||||||
${WIT} cp ${PWD}/RMC${REG}${ID}.wbfs --DEST \
|
wiimmfi ${PWD}/RMC${REG}${ID}.wbfs
|
||||||
${PATCHIMAGE_GAME_DIR}/RMC${REG}${ID}.wbfs \
|
|
||||||
--update --psel=data --wiimmfi -q -o
|
|
||||||
|
|
||||||
echo "cleaning up workdir..."
|
echo "*** 10) cleaning up workdir"
|
||||||
cd ..
|
cd ..
|
||||||
rm -rf ${FILENAME/.7z}
|
rm -rf ${FILENAME/.7z}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user