| 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 |
no outgoing calls
no test coverage detected