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:
parent
270e0e1d49
commit
8d58ffaad7
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue