Oops
Former-commit-id: cb32d05b5e59329860fea64aaf8bfee024621109
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user