add (yet unused) BPS patching function

This commit is contained in:
Christopher Roy Bratusek 2016-08-09 22:54:12 +02:00
parent 156e546f98
commit 2fb2408fe4
2 changed files with 20 additions and 0 deletions

View File

@ -1,7 +1,9 @@
v7.1.0:
::internal changes
- rewrite downloader function
- supply beat BPS patcher (32 and 64 bit)
- add (yet unused) patching functions for PPF patches
- add (yet unused) patching functions for BPS patches
- code cleanup, remove duplicated code
::bugfixes

View File

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