mkwiimm: check if user has required patchimage.rc stuff set, if not fallback to non-automated mode.

This commit is contained in:
Christopher Roy Bratusek 2014-05-14 21:08:06 +02:00
parent 3fbe60fc41
commit 5075968f01
2 changed files with 10 additions and 6 deletions

View File

@ -14,9 +14,8 @@ v4.94:
other languages to german or english
MKWIIMM_SHARE_SAVE either 1=ja (yes) or 2=nein (no)
whether to share save with the original game
YOU MUST SET THOSE VAlUES (patchimage will tell Wiimm's patcher to use
them and thus allows full automatic creating of mkwiimm without any
further user interaction needed). See README.RC for example config.
if you set them they will be applied for all mkwiimm patchers and no
further user interactions with the wiimm patcher is needed.
v4.93:
- various fixups

View File

@ -72,14 +72,19 @@ build_mkwiimm () {
cp -r ${PATCHIMAGE_SCRIPT_DIR}/../override/* ${PWD}/bin/
echo "LANGUAGE=${MKWIIMM_GAME_LANG}
if [[ ${MKWIIMM_GAME_LANG} && ${MKWIIMM_MSG_LANG} && ${MKWIIMM_MKWIIMM_OWN_SAVE} ]]; then
echo "LANGUAGE=${MKWIIMM_GAME_LANG}
MSGLANG=${MKWIIMM_MSG_LANG}
ISOMODE=wbfs
SPLITISO=
PRIV_SAVEGAME=${MKWIIMM_OWN_SAVE}" > ${PWD}/config.def
echo "creating >${DIST}<, stand by..."
./create-image.sh -a --dest=${PWD}/RMC${REG}${ID}.wbfs >/dev/null
echo "creating >${DIST}<, stand by..."
./create-image.sh -a --dest=${PWD}/RMC${REG}${ID}.wbfs >/dev/null
else
echo "creating >${DIST}<"
./create-image.sh --dest=${PWD}/RMC${REG}${ID}.wbfs
fi
echo "patching >${DIST}< to use custom server..."
${WIT} cp ${PWD}/RMC${REG}${ID}.wbfs --DEST \