MCPcopy Create free account
hub / github.com/MyGUI/mygui / load

Method load

MyGUIEngine/src/MyGUI_DynLibManager.cpp:47–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45 }
46
47 DynLib* DynLibManager::load(std::string_view fileName)
48 {
49 StringDynLibMap::iterator it = mLibsMap.find(fileName);
50
51 if (it != mLibsMap.end())
52 {
53 return it->second;
54 }
55
56 DynLib* pLib = new DynLib(fileName);
57 if (!pLib->load())
58 {
59 delete pLib;
60 return nullptr;
61 }
62
63 mLibsMap[pLib->getName()] = pLib;
64 return pLib;
65 }
66
67 void DynLibManager::unload(DynLib* library)
68 {

Callers

nothing calls this directly

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected