fix: patcher(mbcpapp.sh): wrong handling

separate function fixed it

Signed-off-by: Cuynu <cuynu@proton.me>
This commit is contained in:
Cuynu 2026-09-09 15:50:46 +07:00
commit f413ecfb68

View file

@ -313,9 +313,15 @@ convert_apks() {
info "You probably can continue to unpack APK!"
}
newbehavior() {
warn "App is newer v6.5.15+! Patches continue to work, but you can't login"
warn "Until a workaround is implemented :("
confirm || exit 1
}
run_patcher() {
# check v6.5.15+
[ -f "$DIRPATH"/mbapk/mbapk_unpacked/root/lib/arm64-v8a/libnframes.so ] && warn "You are using v6.5.15+! Patches continue to work but you can't login until a workaround is implemented !" && confirm || return 0
[ -f "$DIRPATH"/mbapk/mbapk_unpacked/root/lib/arm64-v8a/libnframes.so ] && newbehavior
is_unpacked_lib && bash ./parse.sh && bash ./patch.sh
}