From d765da70172fa8b2c831176b5e5b99c0cf3f8b1f Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Sat, 13 Aug 2016 19:03:16 +0200 Subject: [PATCH] add support for Pokemon Delta Emerald (Alpha Sapphire) --- scripts/common.sh | 9 +++++-- scripts/pokemon/pokemondeltaemerald-as.sh | 31 +++++++++++++++++++++++ 2 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 scripts/pokemon/pokemondeltaemerald-as.sh diff --git a/scripts/common.sh b/scripts/common.sh index 0515ef6..5732881 100644 --- a/scripts/common.sh +++ b/scripts/common.sh @@ -83,6 +83,7 @@ PKMN5 EternalX Pokemon Eternal X PKMN6 WiltingY Pokemon Wilting Y PKMN7 RisingRuby Pokemon Rising Ruby PKMN8 SinkingSapphire Pokemon Sinking Sapphire +PKMN9 DeltaEmeraldAS Pokemon Delta Emerald (Alpha Sapphire) BSECU BravelySecondUncensored Bravely Second Uncensored @@ -461,8 +462,12 @@ check_riivolution_patch () { elif [[ ${PATCHIMAGE_RIIVOLUTION_DOWNLOAD} == "TRUE" ]]; then download_riivolution_patch else - echo -e "please specify zip/rar to use with --riivolution=" - exit 21 + if [[ ${1} == --nofail ]]; then + echo -e "no zip archive found. Skipping to bare patch file detection" + else + echo -e "please specify zip/rar to use with --riivolution=" + exit 21 + fi fi fi echo "*** >> status: ${x}" diff --git a/scripts/pokemon/pokemondeltaemerald-as.sh b/scripts/pokemon/pokemondeltaemerald-as.sh new file mode 100644 index 0000000..7003fb1 --- /dev/null +++ b/scripts/pokemon/pokemondeltaemerald-as.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +DOWNLOAD_LINK="mega:///#!z9oEwB4R!8Ab1mp23iEYnAdekP-rH3VrWNe_kUAoTgrh5_oU9BdE" +RIIVOLUTION_ZIP="Pokemon Delta Emerald.zip" +GAMENAME="Pokemon Delta Emerald (AS)" +PATCH="Pokemon - Delta Emerald.xdelta" +GAME_TYPE=HANS +HANS_DELTA=TRUE + +ROM_MASK="*000400000011[cC]500*cxi" +ROMFS="DeltaEmerald-AS.romfs" +DATA="${PATCHIMAGE_DATA_DIR}/DeltaEmerald-AS/" + +show_notes () { + +echo -e \ +"************************************************ +${GAMENAME} + +Source: https://gbatemp.net/threads/or-as-pokemon-delta-emerald-rom-hack.421637/ +Base ROM: Pokemon Alpha Sapphire +Supported Versions: US, EU, JAP +************************************************" + +} + +check_hans_files () { + + check_riivolution_patch --nofail + +}