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)
|
bool NzDynLibImpl::Load(const NzString& libraryPath, NzString* errorMessage)
|
||||||
{
|
{
|
||||||
NzString path = libraryPath;
|
NzString path = libraryPath;
|
||||||
|
|
||||||
unsigned int pos = path.FindLast(".so");
|
unsigned int pos = path.FindLast(".so");
|
||||||
if (pos == NzString::npos || (path.GetLength() > pos+3 && path[pos+3] != '.'))
|
if (pos == NzString::npos || (path.GetLength() > pos+3 && path[pos+3] != '.'))
|
||||||
path += ".so";
|
path += ".so";
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ class NzDynLibImpl : NzNonCopyable
|
||||||
~NzDynLibImpl() = default;
|
~NzDynLibImpl() = default;
|
||||||
|
|
||||||
NzDynLibFunc GetSymbol(const NzString& symbol, NzString& errorMessage) const;
|
NzDynLibFunc GetSymbol(const NzString& symbol, NzString& errorMessage) const;
|
||||||
bool Load(const NzString& libraryPath);
|
bool Load(const NzString& libraryPath, NzString* errorMessage);
|
||||||
void Unload();
|
void Unload();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue