mirror of
https://gitlab.com/Nanolx/patchimage.git
synced 2024-12-28 18:11:50 +01:00
add ppf patching function
This commit is contained in:
parent
8936430724
commit
11af1f8555
@ -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
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user