I'm proposing that there should either be an overload for exl::util::GetModuleInfo that takes a const void* argument or a differently named function that will do the following:
- Check the provided pointer against the range of the already cached
ModuleInfo structures of the static modules
- If it does not fall within any of those,
svcQueryMemory on to get the memory range it's in. From there, move forwards/backwards/both to try and get the rest of the ModuleInfo fields
On top of that, it would be nice to be able to fetch the name of the module either by index or by pointer.
I'm proposing that there should either be an overload for
exl::util::GetModuleInfothat takes aconst void*argument or a differently named function that will do the following:ModuleInfostructures of the static modulessvcQueryMemoryon to get the memory range it's in. From there, move forwards/backwards/both to try and get the rest of theModuleInfofieldsOn top of that, it would be nice to be able to fetch the name of the module either by index or by pointer.