Added cache for parsers

This commit is contained in:
snake-4
2024-04-27 16:56:50 +02:00
parent 8c4fbcc207
commit e431fc2c6a
8 changed files with 76 additions and 56 deletions

View File

@@ -12,7 +12,7 @@
bool hookPLTByName(zygisk::Api *api, const std::string &libName, const std::string &symbolName, void *hookFunc, void **origFunc)
{
for (const auto &map : parseMapsFromPath("/proc/self/maps"))
for (const auto &map : parseSelfMaps())
{
if (map.getPathname().ends_with("/" + libName))
{