mirror of
https://github.com/LSPosed/LSPlant.git
synced 2025-05-04 20:42:02 +08:00
Fix including backup
This commit is contained in:
parent
0b1e5f8b7a
commit
ae4bc68b12
@ -133,7 +133,7 @@ export {
|
||||
inline art::ArtMethod *IsHooked(art::ArtMethod * art_method, bool including_backup = false) {
|
||||
art::ArtMethod *backup = nullptr;
|
||||
hooked_methods_.if_contains(art_method, [&backup, &including_backup](const auto &it) {
|
||||
if (!including_backup || it.second.first) backup = it.second.second;
|
||||
if (including_backup || it.second.first) backup = it.second.second;
|
||||
});
|
||||
return backup;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user