From 7c8020c25d7fab6835b915dc47187dd099df986e Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Sun, 7 Jul 2013 09:42:41 +0200 Subject: [PATCH] retro remix support --- ChangeLog | 12 ++++++ GAMEIDS | 2 + README | 1 + patchimage.sh | 4 ++ script.d/common.sh | 1 + script.d/retroremix.sh | 88 ++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 108 insertions(+) create mode 100644 script.d/retroremix.sh diff --git a/ChangeLog b/ChangeLog index 4e516b8..c10d14c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +v2.4: +- fixed downloading NewerSMBW +- added support for New Super Mario Bros. Wii Retro Remix +- add savegame hack to Epic Super Bowser World +- add savegame hack to Newer: Holiday Special +- add savegame hack to New Super Mario Bros. 4 +- leave a message where the file was created +- removed patches/03-06.arc.LH (NewerSMBW 1.02 includes it) +- moved NSMBW detection in a function (no more duplicated code) +- fixed pre-requisite checking for Koopa Country +- fixed handling .zip/.rar files with spaces in the name + v2.3: - add support for New Super Mario Bros. 4 - fixed building JPN version of NewerHoliday diff --git a/GAMEIDS b/GAMEIDS index b1738b8..a07f496 100644 --- a/GAMEIDS +++ b/GAMEIDS @@ -11,3 +11,5 @@ SMN?08 Epic Super Bowser World SMN?09 ? SMN?10 Koopa Country SMN?11 New Super Mario Bros. 4 + +MRR?01 New Super Mario Bros. Wii Retro Remix diff --git a/README b/README index 0884a05..5c29934 100644 --- a/README +++ b/README @@ -21,6 +21,7 @@ Supported Games * Epic Super Bower World (riivolution) [SMN?08] * Koopa Country (riivolution) [SMN?10] * New Super Mario Bros. 4 (riivolution) [SMN?11] +* New Super Mario Bros. Wii Retro Remix [MRR?01] * The Legend of Zelda: Parallel Worlds (ips) Default Searchpaths: diff --git a/patchimage.sh b/patchimage.sh index 6ebd088..8e4a2af 100755 --- a/patchimage.sh +++ b/patchimage.sh @@ -49,6 +49,10 @@ case ${GAME} in source script.d/nsmbw4.sh ;; + i | I | Retro | "Retro Remix" ) + source script.d/retroremix.sh + ;; + 1 | ParallelWorlds | "The Legend of Zelda: Parallel Worlds" ) source script.d/parallelworlds.sh ;; diff --git a/script.d/common.sh b/script.d/common.sh index 5f271e7..461277f 100644 --- a/script.d/common.sh +++ b/script.d/common.sh @@ -41,6 +41,7 @@ E Cannon Super Mario Bros. F Epic Super Bowser World G Koopa Country H New Super Mario Bros. 4 +I New Super Mario Bros. Wii Retro Remix 1 The Legend of Zelda: Parallel Worlds " diff --git a/script.d/retroremix.sh b/script.d/retroremix.sh new file mode 100644 index 0000000..fca7b5c --- /dev/null +++ b/script.d/retroremix.sh @@ -0,0 +1,88 @@ +#!/bin/bash + +WORKDIR=nsmb.d +DOL=${WORKDIR}/sys/main.dol +DOWNLOAD_LINK="http://www.nanolx.org/riivolution/Retro%20Remix.rar" +RIIVOLUTION_ZIP="Retro Remix.rar" +RIIVOLUTION_DIR="Retro Remix" +GAMENAME="New Super Mario Bros. Wii Retro Remix" +GAME_TYPE=RIIVOLUTION +BANNER_LOCATION=${WORKDIR}/files/opening.bnr + +show_notes () { + +echo -e \ +"************************************************ +${GAMENAME} + +The Original Adventure is back! +Join Mario in his Bowser-bashing classic quest - Again! +Bowser has once again invaded the Mushroom Kingdom +and kidnapped Princess Peach. It's up to you to save her. + +Source: ? +Base Image: New Super Mario Bros. Wii (SMN?01) +Supported Versions: EURv1, EURv2, USAv1, USAv2, JPNv1 +************************************************" + +} + +check_input_image_special () { + + if [[ ! ${IMAGE} ]]; then + if test -f SMN?01.wbfs; then + IMAGE=SMN?01.wbfs + elif test -f SMN?01.iso; then + IMAGE=SMN?01.iso + else + echo -e "please specify image to use with --iso=" + exit 1 + fi + fi + +} + +detect_game_version () { + + nsmbw_version + + GAMEID=MRR${REG_LETTER}01 + +} + +place_files () { + + case ${VERSION} in + EURv* ) + LANGDIRS=( EngEU FraEU GerEU ItaEU SpaEU NedEU ) + for dir in ${LANGDIRS[@]}; do + cp -r "${RIIVOLUTION_DIR}"/US/EngUS/Message/ ${WORKDIR}/files/EU/${dir}/ + done + cp "${RIIVOLUTION_DIR}"/US/Layout/openingTitle/openingTitle.arc ${WORKDIR}/files/EU/Layout/openingTitle/ + ;; + + USAv* ) + LANGDIRS=( FraUS EngUS SpaUS ) + for dir in ${LANGDIRS[@]}; do + cp -r "${RIIVOLUTION_DIR}"/US/EngUS/Message/ ${WORKDIR}/files/US/${dir}/ + done + cp "${RIIVOLUTION_DIR}"/US/Layout/openingTitle/openingTitle.arc ${WORKDIR}/files/US/Layout/openingTitle/ + ;; + + JPNv* ) + cp "${RIIVOLUTION_DIR}"/US/EngUS/Message/* ${WORKDIR}/files/JP/Message/ + cp "${RIIVOLUTION_DIR}"/US/Layout/openingTitle/openingTitle.arc ${WORKDIR}/files/JP/Layout/openingTitle/ + ;; + esac + + cp "${RIIVOLUTION_DIR}"/Layout/MultiCorseSelect/MultiCorseSelect.arc ${WORKDIR}/files/Layout/MultiCourseSelect/MultiCourseSelect.arc + cp -r "${RIIVOLUTION_DIR}"/{Layout,MovieDemo,Object,Sound,Stage,WorldMap}/ ${WORKDIR}/files/ + rm -rf ${WORKDIR}/files/Layout/MultiCorseSelect/ + +} + +dolpatch () { + + echo + +}