mirror of
https://github.com/celisej567/source-engine.git
synced 2026-01-05 22:09:59 +03:00
unittests: fix library loading
This commit is contained in:
@@ -292,6 +292,18 @@ bool foundLibraryWithPrefix( char *pModuleAbsolutePath, size_t AbsolutePathSize,
|
||||
bFound |= stat(pModuleAbsolutePath, &statBuf) == 0;
|
||||
}
|
||||
|
||||
if( !bFound )
|
||||
{
|
||||
Q_snprintf(pModuleAbsolutePath, AbsolutePathSize, "%s/lib%s", pPath, str);
|
||||
bFound |= stat(pModuleAbsolutePath, &statBuf) == 0;
|
||||
}
|
||||
|
||||
if( !bFound )
|
||||
{
|
||||
Q_snprintf(pModuleAbsolutePath, AbsolutePathSize, "%s/%s", pPath, str);
|
||||
bFound |= stat(pModuleAbsolutePath, &statBuf) == 0;
|
||||
}
|
||||
|
||||
return bFound;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user