Oops
Former-commit-id: cb32d05b5e59329860fea64aaf8bfee024621109
This commit is contained in:
parent
f88c6cf0d7
commit
a09fbe6a9d
|
|
@ -39,7 +39,7 @@ NzDynLibFunc NzDynLibImpl::GetSymbol(const NzString& symbol, NzString* errorMess
|
|||
bool NzDynLibImpl::Load(const NzString& libraryPath, NzString* errorMessage)
|
||||
{
|
||||
NzString path = libraryPath;
|
||||
|
||||
|
||||
unsigned int pos = path.FindLast(".so");
|
||||
if (pos == NzString::npos || (path.GetLength() > pos+3 && path[pos+3] != '.'))
|
||||
path += ".so";
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ class NzDynLibImpl : NzNonCopyable
|
|||
~NzDynLibImpl() = default;
|
||||
|
||||
NzDynLibFunc GetSymbol(const NzString& symbol, NzString& errorMessage) const;
|
||||
bool Load(const NzString& libraryPath);
|
||||
bool Load(const NzString& libraryPath, NzString* errorMessage);
|
||||
void Unload();
|
||||
|
||||
private:
|
||||
|
|
|
|||
Loading…
Reference in New Issue