MCPcopy Create free account
hub / github.com/NazaraEngine/NazaraEngine / Load

Method Load

src/Nazara/Core/DynLib.cpp:107–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105 */
106
107 bool DynLib::Load(const String& libraryPath)
108 {
109 NazaraLock(m_mutex)
110
111 Unload();
112
113 std::unique_ptr<DynLibImpl> impl(new DynLibImpl(this));
114 if (!impl->Load(libraryPath, &m_lastError))
115 {
116 NazaraError("Failed to load library: " + m_lastError);
117 return false;
118 }
119
120 m_impl = impl.release();
121
122 return true;
123 }
124
125 /*!
126 * \brief Unloads the library

Callers 2

InitializeMethod · 0.45
MountMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected