add ppf patching function

This commit is contained in:
Christopher Roy Bratusek 2016-08-07 11:26:15 +02:00
parent 8936430724
commit 11af1f8555

View File

@ -141,6 +141,20 @@ patchimage_ips () {
fi fi
} }
patchimage_ppf () {
show_notes
check_input_rom
if [[ -f ${PATCH} ]]; then
ext="${ROM/*.}"
cp "${ROM}" "${GAMENAME}.${ext}"
"${PPF}" a "${PATCH}" "${GAMENAME}.${ext}" || exit 51
else
echo -e "error: patch (${PATCH}) could not be found"
exit 21
fi
}
patchimage_hans () { patchimage_hans () {
show_notes show_notes
@ -408,6 +422,10 @@ for game in ${GAME[@]}; do
patchimage_ips patchimage_ips
;; ;;
"PPF" )
patchimage_ppf
;;
"HANS" ) "HANS" )
patchimage_hans patchimage_hans
;; ;;