diff --git a/patchimage.sh b/patchimage.sh index 335576d..d070278 100755 --- a/patchimage.sh +++ b/patchimage.sh @@ -141,6 +141,20 @@ patchimage_ips () { 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 () { show_notes @@ -408,6 +422,10 @@ for game in ${GAME[@]}; do patchimage_ips ;; + "PPF" ) + patchimage_ppf + ;; + "HANS" ) patchimage_hans ;;