1
0
Fork 0
mirror of https://github.com/Radiquum/anixart-patcher.git synced 2025-09-07 11:43:51 +05:00

fix: [BUG] value replace in force_static_request_urls will repeat after second path without re-decompiling apk

Fixes #10
This commit is contained in:
Kentai Radiquum 2025-09-04 15:17:04 +05:00
parent 270e0e1d49
commit 8d58ffaad7
Signed by: Radiquum
GPG key ID: 858E8EE696525EED

View file

@ -44,7 +44,7 @@ def apply(patch_config: PatchConfig_ForceStaticRequestUrls) -> bool:
path = f"{config['folders']['decompiled']}/{value['file_path']}"
lines = get_smali_lines(path)
lines = find_and_replace_smali_line(
lines, value["value"], f"{patch_config['base_url']}{value['value']}"
lines, f'value = "{value['value']}"', f'value = "{patch_config['base_url']}{value['value']}"'
)
save_smali_lines(path, lines)
log.debug(f"[FORCE_STATIC_REQUEST_URLS] file {path} has been modified")