further MKWiimm tweaks

This commit is contained in:
Christopher Roy Bratusek 2015-04-11 22:02:29 +02:00
parent dbad595459
commit 920e9b7dd7
2 changed files with 9 additions and 7 deletions

View File

@ -26,14 +26,17 @@ v5.4.0:
- add support for SMN?41 (Devil Mario Winter Special) - add support for SMN?41 (Devil Mario Winter Special)
- add support for SMN?31 (New Super Mario Bros. Wii - Other World) - add support for SMN?31 (New Super Mario Bros. Wii - Other World)
- add MKWIIMM_OVERRIDE_SZS variable to patchimage.rc - add MKWIIMM_OVERRIDE_SZS variable to patchimage.rc
if set to TRUE patchimage will override the supplied SZS tools If set to TRUE patchimage will override the supplied SZS tools
of the MKWiimm patcher with it's own version of the tools. of the MKWiimm patcher with it's own version of the tools.
. .
This is useful when the supplied ones don't work with your system's This is useful when the supplied ones don't work with your system's
libpng (usually this happens on Debian GNU/Linux). libpng (usually this happens on non-recent Debian GNU/Linux).
. .
If patching anything older than RMCP23 (pre-wiimmfi versions) the tools If patching anything older than RMCP23 (pre-wiimmfi versions) the tools
will always be overriden (because they are ancient). will always be overriden (because they are ancient).
.
If creating anything newer than RMCP26 (2015 versions) the tools will
be never overriden (for now, does not work yet).
v5.3.0: v5.3.0:
- update wit to 2.30a - update wit to 2.30a

View File

@ -8,7 +8,7 @@ show_notes () {
echo -e \ echo -e \
"************************************************ "************************************************
${GAMENAME} ${GAME_NAME}
Custom Mario Kart Wii Custom Mario Kart Wii
@ -87,8 +87,6 @@ build_mkwiimm () {
( echo "something went wrong extracting files" && exit 63 ) ( echo "something went wrong extracting files" && exit 63 )
fi fi
XD=${PWD}
cd ${FILENAME/.7z} cd ${FILENAME/.7z}
ln -s ${IMAGE} . ln -s ${IMAGE} .
@ -101,7 +99,7 @@ build_mkwiimm () {
esac esac
chmod +x *.sh chmod +x *.sh
if [[ ${MKWIIMM_OVERRIDE_SZS} == "TRUE" || ${MY_ID} -lt 23 ]]; then if [[ (${MKWIIMM_OVERRIDE_SZS} == "TRUE" && ${MY_ID} -lt 27) || ${MY_ID} -lt 23 ]]; then
cp -r ${PATCHIMAGE_SCRIPT_DIR}/../override/* ${PWD}/bin/ cp -r ${PATCHIMAGE_SCRIPT_DIR}/../override/* ${PWD}/bin/
fi fi
@ -132,7 +130,7 @@ PRIV_SAVEGAME=${MKWIIMM_OWN_SAVE}" > ${PWD}/config.def
fi fi
echo " ${DIST} saved as ${PATCHIMAGE_GAME_DIR}/RMC${REG}${MY_ID}.wbfs" echo " ${DIST} saved as ${PATCHIMAGE_GAME_DIR}/RMC${REG}${MY_ID}.wbfs"
mv RMC${REG}${MY_ID}.wbfs \ mv RMC${REG}${MY_ID}.wbfs \
${PATCHIMAGE_GAME_DIR}/RMC${REG}${MY_ID}.wbfs ${PATCHIMAGE_GAME_DIR}/RMC${REG}${MY_ID}.wbfs || exit 51
if [[ ${MY_ID} -lt 23 ]]; then if [[ ${MY_ID} -lt 23 ]]; then
echo "*** 9) cleaning up workdir" echo "*** 9) cleaning up workdir"
@ -150,6 +148,7 @@ PRIV_SAVEGAME=${MKWIIMM_OWN_SAVE}" > ${PWD}/config.def
patch_wiimm () { patch_wiimm () {
XD=${PWD}
if [[ ${ID} == ALL ]]; then if [[ ${ID} == ALL ]]; then
for ID in {06..27}; do for ID in {06..27}; do
build_mkwiimm ${ID} build_mkwiimm ${ID}