mirror of
https://gitlab.com/Nanolx/patchimage.git
synced 2024-11-28 03:54:22 +01:00
add (yet unused) BPS patching function
This commit is contained in:
parent
156e546f98
commit
2fb2408fe4
@ -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
|
||||
|
@ -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
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user