Fix including backup

This commit is contained in:
LoveSy 2024-08-12 00:07:09 +08:00
parent 0b1e5f8b7a
commit ae4bc68b12
No known key found for this signature in database

View File

@ -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;
}