native libraries check fix
This commit is contained in:
parent
459b3f09f9
commit
ab1aefd619
@ -42,14 +42,20 @@ public class LibrariesDownloadTaskFactory : INetworkTaskFactory
|
||||
|
||||
foreach (var l in _libraries.Libs)
|
||||
{
|
||||
if (!HashHelper.CheckFileSHA1(l.jarFilePath, l.artifact?.sha1, checkHashes))
|
||||
if (l is Libraries.NativeLib native)
|
||||
{
|
||||
_libsToDownload.Add(l);
|
||||
//TODO: replace with actual native libraries check
|
||||
if(!nativeDirExists || checkHashes)
|
||||
{
|
||||
_libsToDownload.Add(l);
|
||||
}
|
||||
}
|
||||
//TODO: replace with actual native libraries check
|
||||
else if (!nativeDirExists && l is Libraries.NativeLib)
|
||||
else
|
||||
{
|
||||
_libsToDownload.Add(l);
|
||||
if (!HashHelper.CheckFileSHA1(l.jarFilePath, l.artifact?.sha1, checkHashes))
|
||||
{
|
||||
_libsToDownload.Add(l);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user