mirror of
https://gitlab.com/Nanolx/patchimage.git
synced 2024-11-24 10:09:22 +01:00
simplify patchimage.sh
This commit is contained in:
parent
43b9b125ef
commit
5161a4a67b
47
database/scripts.db
Normal file
47
database/scripts.db
Normal file
@ -0,0 +1,47 @@
|
||||
NSMB1:NewerSMB:nsmbw/newersmb.sh
|
||||
NSMB2:NewerSummerSun:nsmbw/newersummersun.sh
|
||||
NSMB3:AnotherSMB:nsmbw/anothersmb.sh
|
||||
NSMB4:HolidaySpecial:nsmbw/newerholiday.sh
|
||||
NSMB5:Cannon:nsmbw/cannon.sh
|
||||
NSMB6:BowserWorld:nsmbw/epicbowserworld.sh
|
||||
NSMB7:KoopaCountry:nsmbw/koopacountry.sh
|
||||
NSMB8:NewSuperMarioBros4:nsmbw/nsmbw4.sh
|
||||
NSMB9:RetroRemix:nsmbw/retroremix.sh
|
||||
NSMB10:WinterMoon:nsmbw/wintermoon.sh
|
||||
NSMB11:NSMBW3:nsmbw/nsmbw3.sh
|
||||
NSMB12:Vacation:nsmbw/summervacation.sh
|
||||
NSMB13:ASLM:nsmbw/awesomersuperluigi.sh
|
||||
NSMB14:Sykland:nsmbw/skyland.sh
|
||||
NSMB15:RVLution:nsmbw/rvlution.sh
|
||||
NSMB16:Midi:nsmbw/midissupermariowii.sh
|
||||
NSMB17:DarkUmbra:nsmbw/darkumbrasmb.sh
|
||||
NSMB18:NewerApocalypse:nsmbw/newerapocalypse.sh
|
||||
NSMB19:LuigisSuperYoshiBros:nsmbw/luigissuperyoshibros.sh
|
||||
NSMB20:NewerFallingLeaf:nsmbw/newerfallingleaf.sh
|
||||
NSMB21:DevilMarioWinterSpecial:nsmbw/devilmariowinterspecial.sh
|
||||
NSMB22:NewSMBWOtherWorld:nsmbw/newsmbwotherworld.sh
|
||||
NSMB23:TheLegendOfYoshi:nsmbw/thelegendofyoshi.sh
|
||||
NSMB24:RemixedSuperMarioBros:nsmbw/remixedsupermariobroswii.sh
|
||||
NSMB25:GhostlySuperGhostBoos:nsmbw/ghostlysuperghostbooswii.sh
|
||||
NSMB26:RevisedSuperMarioBros:nsmbw/revisedsupermariobroswii.sh
|
||||
NSMB27:MLGSuperLuigi:nsmbw/mlgsuperluigibroswii.sh
|
||||
NSMB99:NSMBWCharacters:nsmbw/nsmbw_characters.sh
|
||||
MKW1:Wiimmfi:mkwii/wiimmfi.sh
|
||||
MKW2:Wiimmpatch:wiimmfi_generic.sh
|
||||
MKW3:Mkwiimm:mkwii/mkwiimm.sh
|
||||
MKW4:MkwiimmItems:mkwii/mkwiimm_items.sh
|
||||
MKW5:MkwiimmFonts:mkwii/mkwiimm_fonts.sh
|
||||
MKW6:MkwiimmKarts:mkwii/mkwiimm_karts.sh
|
||||
KAW1:Kirby:kirbywii.sh
|
||||
TMS1:TokyoMirageSessions:tokyomiragesessionsfe.sh
|
||||
PKMN1:NeoX:pokemon/pokemonneox.sh
|
||||
PKMN2:NeoY:pokemon/pokemonneoy.sh
|
||||
PKMN3:RutileRuby:pokemon/pokemonrutileruby.sh
|
||||
PKMN4:StarSapphire:pokemon/pokemonstarsapphire.sh
|
||||
PKMN5:EternalX:pokemon/pokemoneternalx.sh
|
||||
PKMN6:WiltingY:pokemon/pokemonwiltingy.sh
|
||||
PKMN7:RisingRuby:pokemon/pokemonrisingruby.sh
|
||||
PKMN8:SinkingSapphire:pokemon/pokemonsinkingsapphire.sh
|
||||
PKMN9:DeltaEmeraldAS:pokemon/pokemondeltaemerald-as.sh
|
||||
BSECU:BravelySecondUncensored:bravelyseconduncensored.sh
|
||||
ZEL1:ParallelWorlds:parallelworlds.sh
|
203
patchimage.sh
203
patchimage.sh
@ -302,202 +302,13 @@ done
|
||||
|
||||
for game in ${GAME[@]}; do
|
||||
|
||||
case ${game} in
|
||||
|
||||
NSMB1 | NewerSMB )
|
||||
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/newersmb.sh"
|
||||
;;
|
||||
|
||||
NSMB2 | NewerSummerSun )
|
||||
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/newersummersun.sh"
|
||||
;;
|
||||
|
||||
NSMB3 | AnotherSMB )
|
||||
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/anothersmb.sh"
|
||||
;;
|
||||
|
||||
NSMB4 | HolidaySpecial )
|
||||
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/newerholiday.sh"
|
||||
;;
|
||||
|
||||
NSMB5 | Cannon )
|
||||
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/cannon.sh"
|
||||
;;
|
||||
|
||||
NSMB6 | BowserWorld )
|
||||
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/epicbowserworld.sh"
|
||||
;;
|
||||
|
||||
NSMB7 | KoopaCountry )
|
||||
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/koopacountry.sh"
|
||||
;;
|
||||
|
||||
NSMB8 | NewSuperMarioBros4 )
|
||||
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/nsmbw4.sh"
|
||||
;;
|
||||
|
||||
NSMB9 | RetroRemix )
|
||||
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/retroremix.sh"
|
||||
;;
|
||||
|
||||
NSMB10 | WinterMoon )
|
||||
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/wintermoon.sh"
|
||||
;;
|
||||
|
||||
NSMB11 | NSMBW3 )
|
||||
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/nsmbw3.sh"
|
||||
;;
|
||||
|
||||
NSMB12 | Vacation )
|
||||
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/summervacation.sh"
|
||||
;;
|
||||
|
||||
NSMB13 | ASLM )
|
||||
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/awesomersuperluigi.sh"
|
||||
;;
|
||||
|
||||
NSMB14 | Sykland )
|
||||
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/skyland.sh"
|
||||
;;
|
||||
|
||||
NSMB15 | RVLution )
|
||||
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/rvlution.sh"
|
||||
;;
|
||||
|
||||
NSMB16 | Midi )
|
||||
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/midissupermariowii.sh"
|
||||
;;
|
||||
|
||||
NSMB17 | DarkUmbra )
|
||||
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/darkumbrasmb.sh"
|
||||
;;
|
||||
|
||||
NSMB18 | NewerApocalypse )
|
||||
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/newerapocalypse.sh"
|
||||
;;
|
||||
|
||||
NSMB19 | LuigisSuperYoshiBros )
|
||||
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/luigissuperyoshibros.sh"
|
||||
;;
|
||||
|
||||
NSMB20 | NewerFallingLeaf )
|
||||
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/newerfallingleaf.sh"
|
||||
;;
|
||||
|
||||
NSMB21 | DevilMarioWinterSpecial )
|
||||
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/devilmariowinterspecial.sh"
|
||||
;;
|
||||
|
||||
NSMB22 | NewSMBWOtherWorld )
|
||||
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/newsmbwotherworld.sh"
|
||||
;;
|
||||
|
||||
NSMB23 | TheLegendOfYoshi )
|
||||
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/thelegendofyoshi.sh"
|
||||
;;
|
||||
|
||||
NSMB24 | RemixedSuperMarioBros )
|
||||
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/remixedsupermariobroswii.sh"
|
||||
;;
|
||||
|
||||
NSMB25 | GhostlySuperGhostBoos )
|
||||
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/ghostlysuperghostbooswii.sh"
|
||||
;;
|
||||
|
||||
NSMB26 | RevisedSuperMarioBros )
|
||||
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/revisedsupermariobroswii.sh"
|
||||
;;
|
||||
|
||||
NSMB27 | MLGSuperLuigi )
|
||||
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/mlgsuperluigibroswii.sh"
|
||||
;;
|
||||
|
||||
NSMB99 | NSMBWCharacters )
|
||||
source "${PATCHIMAGE_SCRIPT_DIR}/nsmbw/nsmbw_characters.sh"
|
||||
;;
|
||||
|
||||
MKW1 | Wiimmfi )
|
||||
source "${PATCHIMAGE_SCRIPT_DIR}/mkwii/wiimmfi.sh"
|
||||
;;
|
||||
|
||||
MKW2 | Wiimmpatch )
|
||||
source "${PATCHIMAGE_SCRIPT_DIR}/wiimmfi_generic.sh"
|
||||
;;
|
||||
|
||||
MKW3 | Mkwiimm )
|
||||
source "${PATCHIMAGE_SCRIPT_DIR}/mkwii/mkwiimm.sh"
|
||||
;;
|
||||
|
||||
MKW4 | MkwiimmItems )
|
||||
source "${PATCHIMAGE_SCRIPT_DIR}/mkwii/mkwiimm_items.sh"
|
||||
;;
|
||||
|
||||
MKW5 | MkwiimmFonts )
|
||||
source "${PATCHIMAGE_SCRIPT_DIR}/mkwii/mkwiimm_fonts.sh"
|
||||
;;
|
||||
|
||||
MKW6 | MkwiimmKarts )
|
||||
source "${PATCHIMAGE_SCRIPT_DIR}/mkwii/mkwiimm_karts.sh"
|
||||
;;
|
||||
|
||||
KAW1 | Kirby )
|
||||
source "${PATCHIMAGE_SCRIPT_DIR}/kirbywii.sh"
|
||||
;;
|
||||
|
||||
TMS1 | TokyoMirageSessions )
|
||||
source "${PATCHIMAGE_SCRIPT_DIR}/tokyomiragesessionsfe.sh"
|
||||
;;
|
||||
|
||||
PKMN1 | NeoX )
|
||||
source "${PATCHIMAGE_SCRIPT_DIR}/pokemon/pokemonneox.sh"
|
||||
;;
|
||||
|
||||
PKMN2 | NeoY )
|
||||
source "${PATCHIMAGE_SCRIPT_DIR}/pokemon/pokemonneoy.sh"
|
||||
;;
|
||||
|
||||
PKMN3 | RutileRuby )
|
||||
source "${PATCHIMAGE_SCRIPT_DIR}/pokemon/pokemonrutileruby.sh"
|
||||
;;
|
||||
|
||||
PKMN4 | StarSapphire )
|
||||
source "${PATCHIMAGE_SCRIPT_DIR}/pokemon/pokemonstarsapphire.sh"
|
||||
;;
|
||||
|
||||
PKMN5 | EternalX )
|
||||
source "${PATCHIMAGE_SCRIPT_DIR}/pokemon/pokemoneternalx.sh"
|
||||
;;
|
||||
|
||||
PKMN6 | WiltingY )
|
||||
source "${PATCHIMAGE_SCRIPT_DIR}/pokemon/pokemonwiltingy.sh"
|
||||
;;
|
||||
|
||||
PKMN7 | RisingRuby )
|
||||
source "${PATCHIMAGE_SCRIPT_DIR}/pokemon/pokemonrisingruby.sh"
|
||||
;;
|
||||
|
||||
PKMN8 | SinkingSapphire )
|
||||
source "${PATCHIMAGE_SCRIPT_DIR}/pokemon/pokemonsinkingsapphire.sh"
|
||||
;;
|
||||
|
||||
PKMN9 | DeltaEmeraldAS )
|
||||
source "${PATCHIMAGE_SCRIPT_DIR}/pokemon/pokemondeltaemerald-as.sh"
|
||||
;;
|
||||
|
||||
BSECU | BravelySecondUncensored )
|
||||
source "${PATCHIMAGE_SCRIPT_DIR}/bravelyseconduncensored.sh"
|
||||
;;
|
||||
|
||||
ZEL1 | ParallelWorlds )
|
||||
source "${PATCHIMAGE_SCRIPT_DIR}/parallelworlds.sh"
|
||||
;;
|
||||
|
||||
* )
|
||||
echo -e "specified Game ${game} not recognized"
|
||||
continue
|
||||
;;
|
||||
|
||||
esac
|
||||
script=$(gawk -F : "/\<${game}\>/"'{print $3}' ${PATCHIMAGE_DATABASE_DIR}/scripts.db)
|
||||
if [[ -f ${PATCHIMAGE_SCRIPT_DIR}/${script} ]]; then
|
||||
echo ${PATCHIMAGE_SCRIPT_DIR}/${script}
|
||||
source ${PATCHIMAGE_SCRIPT_DIR}/${script}
|
||||
else echo -e "specified Game ${game} not recognized"
|
||||
continue
|
||||
fi
|
||||
|
||||
if [[ ${PATCHIMAGE_SHOW_DOWNLOAD} ]]; then
|
||||
echo -e "\nDownloadlink for required files of Game ${GAMENAME} (${game}):\n\t${DOWNLOAD_LINK}\n"
|
||||
|
Loading…
Reference in New Issue
Block a user