MCPcopy Create free account
hub / github.com/cinit/TMoe / handleLoadLibrary

Function handleLoadLibrary

app/src/main/cpp/tmoe_core/NativeInit.cpp:27–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25static void* gLoadedTMessageLibHandle = nullptr;
26
27void handleLoadLibrary(const char* name, void* handle) {
28 if (name == nullptr || handle == nullptr) {
29 return;
30 }
31 std::string tmpName(name);
32 std::string soname = tmpName.substr(tmpName.find_last_of('/') == std::string::npos ?
33 0 : tmpName.find_last_of('/') + 1);
34 if (soname.find("libtmessages.") != std::string::npos) {
35 gLoadedTMessageLibHandle = handle;
36 }
37}
38
39NativeOnModuleLoaded initNativeHook(const NativeAPIEntries *entries) {
40 nativeHookHandle.hookFunction = entries->hookFunc;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected