2016-08-03 22:13:53 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
GAMENAME="Bravely Second Uncensored"
|
|
|
|
GAME_TYPE=HANS
|
2016-08-04 18:58:05 +02:00
|
|
|
HANS_MULTI_SOURCE=TRUE
|
2016-08-03 22:13:53 +02:00
|
|
|
|
2016-08-06 19:46:07 +02:00
|
|
|
ROM_MASK_EUR="*000400000017[bB][bB]00*cxi"
|
|
|
|
ROM_MASK_USA="*000400000017[bB][aA]00*cxi"
|
2016-08-03 22:13:53 +02:00
|
|
|
|
2016-08-05 20:54:27 +02:00
|
|
|
UNP_EXTRA_ARGS="-pAsia81"
|
2016-08-03 22:13:53 +02:00
|
|
|
|
2016-08-04 18:59:58 +02:00
|
|
|
DATA="${PATCHIMAGE_DATA_DIR}/BravelySecondUncensored/"
|
|
|
|
|
2016-08-03 22:13:53 +02:00
|
|
|
show_notes () {
|
|
|
|
|
|
|
|
echo -e \
|
|
|
|
"************************************************
|
|
|
|
${GAMENAME}
|
|
|
|
|
|
|
|
Source: https://gbatemp.net/threads/released-bravely-default-second-uncensored.391715/
|
|
|
|
Base ROM: Bravely Second
|
|
|
|
Supported Versions: US, EU
|
|
|
|
************************************************"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-08-04 18:58:05 +02:00
|
|
|
check_input_rom_special () {
|
|
|
|
|
|
|
|
GAME_VERSION=EUR
|
2016-08-06 19:46:07 +02:00
|
|
|
ROM_MASK=${ROM_MASK_EUR}
|
2016-08-04 18:58:05 +02:00
|
|
|
echo "<< trying EUR game version"
|
|
|
|
check_input_rom
|
2016-08-03 22:13:53 +02:00
|
|
|
|
2016-08-06 19:46:07 +02:00
|
|
|
if [[ ! ${ROM} ]]; then
|
2016-08-04 18:58:05 +02:00
|
|
|
GAME_VERSION=USA
|
2016-08-06 19:46:07 +02:00
|
|
|
ROM_MASK=${ROM_MASK_USA}
|
2016-08-04 18:58:05 +02:00
|
|
|
echo "<< trying USA game version"
|
|
|
|
check_input_rom
|
|
|
|
fi
|
2016-08-03 22:13:53 +02:00
|
|
|
|
2016-08-06 19:46:07 +02:00
|
|
|
if [[ ! ${ROM} ]]; then
|
2016-08-04 18:58:05 +02:00
|
|
|
echo -e "\nneither EUR nor USA version of Bravely Second found."
|
|
|
|
exit 15
|
|
|
|
fi
|
2016-08-03 22:13:53 +02:00
|
|
|
|
2016-08-04 18:58:05 +02:00
|
|
|
case ${GAME_VERSION} in
|
|
|
|
EUR )
|
|
|
|
echo ">> found EUR game version"
|
|
|
|
ROMFS="0017BB00.romfs"
|
2016-08-27 11:00:13 +02:00
|
|
|
DOWNLOAD_LINK="https://mega.nz/#!N0QEHLRB!g_Wy5dngt4xgVXtk1BhQaqSSRj0phjP6xMp776OSEo8"
|
2016-08-03 22:13:53 +02:00
|
|
|
RIIVOLUTION_ZIP="Bravely_Second_Uncensored_EUR_MINI_Asia81.rar"
|
|
|
|
RIIVOLUTION_DIR="Bravely_Second_Uncensored_EUR_MINI_Asia81/ExtractedRomFS"
|
|
|
|
;;
|
|
|
|
|
2016-08-04 18:58:05 +02:00
|
|
|
USA )
|
|
|
|
echo ">> found USA game version"
|
|
|
|
ROMFS="0017BA00.romfs"
|
2016-08-27 11:00:13 +02:00
|
|
|
DOWNLOAD_LINK="https://mega.nz/#!9sx1QKRQ!A6qzCkvY9HmPGu4VIy1TiikTRgbE-vUho99LOYWxA84"
|
2016-08-03 22:13:53 +02:00
|
|
|
RIIVOLUTION_ZIP="Bravely_Second_Uncensored_USA_MINI_Asia81.rar"
|
|
|
|
RIIVOLUTION_DIR="Bravely_Second_Uncensored_USA_MINI_Asia81/ExtractedRomFS"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2016-08-04 18:58:05 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
check_hans_files () {
|
|
|
|
|
2016-08-03 22:13:53 +02:00
|
|
|
check_riivolution_patch
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
patch_romfs () {
|
|
|
|
|
|
|
|
cp -r "${RIIVOLUTION_DIR}"/* romfs/
|
|
|
|
|
|
|
|
}
|